Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within HTML Pages with CSS and JavaScript
Search Coderanch
Advance search
Google search
Register / Login
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
HTML Pages with CSS and JavaScript
Will it work now
selvakumar Thiyagarajan
Ranch Hand
Posts: 30
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Sheriff
Posts: 67746
173
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Please continue any discussion in the original topic. DO no start new topics for the same issue.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Having trouble with a javascript assignment
Form Validation Help Needed Please
location of a JS in frame
Calling outside JSP code without waiting for its response.
Problem accessing the form object of a different frame
More...