I have a navigation menu with javascript. There are a number of lines which mention document.all and I've been told that this can only be read by Internet Explorer.
Does anyone know if there is any way I can get Netscape to read my menu??
If these "document.all" are not alone (if it's "document.all.tagId" or "document.all('tagId')", replace them with "document.getElementById("tagId". Beware that document.all may accept name attribute as ident for a tag, the "document.getElementById" function only accept id attributes. Water is not bad as long as it stays out human body ;-)
I give a star to Targol. Good information here. Id's are the best and only way I recommend since it is the standard compliant way of doing things as set by the W3C.org
I use this way to upgrade the old Internet Exploder browsers that only understand document.all
Adding that snippet at the top of your page makes you only have to deal with one set of functions instead of two in the rest of your page. Always reference an item by it's ID! Gary
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.