Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript dropdown menu using document.all

Status
Not open for further replies.

trc

MIS
Nov 27, 2000
126
CA
I have a dropdown menu that uses the function document.all and does not work in Netscape. The javascript console tells me that the problem is because document.all is not recognised. Why is this and how do I fix it?
 
Hi

The only way to make both IE and Netscape agree is to detect the browser type with document.layers and document.all...since document.layers would be netscape and document.all would be IE :)...from there you the layers and all to do whatever you are doing.

Here is a example:

Thanks,
Hui Emagine Solutions, Inc.
 
Thanks. That really helps. Nasty problem. Especially since itis one that I inherited.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top