A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
Will it work now
selvakumar Thiyagarajan
Greenhorn
Joined: Oct 06, 2008
Posts: 28
posted
Apr 09, 2009 12:39:54
0
Eric,
Can you please check now. can you please help me in killing the Click event?
Code: HOME.html <html> <head> </head> <frameset cols="20%, 80%"> <frame src="Menu.html" id="frame1"/> <frame src="display.html" id="frame2" /> </frameset> </html> Menu.html <html> <head> </head> <body> <a href="menu.html" id="text" onclick="call()">Text</a> <a href="menu.html" id="button" onclick="call()">Submit</a> <script type="text/javascript"> function call() { alert("hi") var x=parent.frame1.document.getElementById("text").id alert(x) var y=parent.frame2.document.getElementById("text").id alert(y) if(x==y) { alert("yes! its equal") parent.frame2.document.getElementById("button").style.display="none" } } </script> </body> </html> Display.html <html> <head></head> <body > <table> <tr id="text"><input type="text" ></tr> <tr id="button"><input type="button" value="Click"></tr> </table> </body> </html>
Also, where the JS should be located when developing a page using frames.?
Thanks in advance!!!
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56232
13
I like...
posted
Apr 09, 2009 12:43:55
0
Please continue any discussion in the original topic. DO no start new topics for the same issue.
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://aspose.com/file-tools
subject: Will it work now
Similar Threads
Calling outside JSP code without waiting for its response.
location of a JS in frame
Problem accessing the form object of a different frame
Having trouble with a javascript assignment
Form Validation Help Needed Please
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter