ana1020 Posted August 20, 2008 Share Posted August 20, 2008 Hi, I wrote an html page which includes some javascript for a collapsible menu. It works perfectly on every browser except firefox. It only works on firefox if I remove the DOCTYPE header, but then it doesn't work on IE. I need this page to work on both IE and firefox. Does anyone know how to make this javascript work with a DOCTYPE included in at the top? Here's the link to the site (open it with both IE and firefox to see what I mean): http://www.liveatsummitsprings.com/faq.html View source to see code. Thanks!!! - Ana Quote Link to comment Share on other sites More sharing options...
lemmin Posted August 20, 2008 Share Posted August 20, 2008 Use getElementById: onclick="collapse_menu(document.getElementById('menu1'), 0); return false;" Quote Link to comment Share on other sites More sharing options...
ana1020 Posted August 20, 2008 Author Share Posted August 20, 2008 lemmin, thank you!!! that was exactly what i was looking for. thank you thank you :-) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.