homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Javascript, Netscape, and xhtml

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

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)

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)

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)

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)

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)

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)

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved