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 Link to comment https://forums.phpfreaks.com/topic/120481-compatibility-issues-with-firefox-30-and-javascript-collapsible-menu/ 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;" Link to comment https://forums.phpfreaks.com/topic/120481-compatibility-issues-with-firefox-30-and-javascript-collapsible-menu/#findComment-621179 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 :-) Link to comment https://forums.phpfreaks.com/topic/120481-compatibility-issues-with-firefox-30-and-javascript-collapsible-menu/#findComment-621286 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.