Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Javascript, Netscape, and xhtml



8:30 am on Nov 4, 2003 (gmt 0)

10+ Year Member

Does anybody know why a javascript link menu will not appear in Netscape if I have a strict doc type? Works ok in IE, but not Netscape. Once I remove the doc type, it works in Netscape.

traffik daddy

10:21 am on Nov 4, 2003 (gmt 0)

10+ Year Member

Quite strange as Javascript was created by Netscape.

I take it that this is the Doctype you use?

<!doctype html public "-//w3c//dtd html 4.01 strict//en">

HTML 4.01 Strict describes the structural portions of HTML 4.01 and does not provide any frame-related markup.

Maybe this could be of help? Or maybe not?



3:14 pm on Nov 4, 2003 (gmt 0)

10+ Year Member

yes, that is the doc type. This is an external js menu file that appears on every page.


1:07 am on Nov 5, 2003 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Sounds like it's time to go into details:

1. Have you validated the page forn the strict DTD?
2. Which version of Netscape is giving trouble


3:31 pm on Nov 5, 2003 (gmt 0)

10+ Year Member

1. Yes, the page validates in strict

2. The javascript menu is invisible in Netscape 7.1 and Mozilla Firebird 0.7 if I have the strict doc type stated at the top.

Everything works in IE.


10:44 pm on Nov 5, 2003 (gmt 0)

10+ Year Member

Shot in the dark here. Never attempted the HTML 4.0 Strict but I had JavaScript promblems when moving to XHTML 1.0 Transitional.

XHTML would only accept event handlers in all lower-case; onmouseover but not onMouseOver. I don't know if case sensitivity is part of the HTML 4.0 Strict standard or not.


10:50 pm on Nov 5, 2003 (gmt 0)

10+ Year Member

mikegram, you may be on to something. I think I have upper and lower case handlers. Let me rewrite the Javascript and see what happens. That might be it! I am having this problem with XHTML 1.0 Strict. Back to you soon.

Featured Threads

Hot Threads This Week

Hot Threads This Month