Arg! JavaScript page works in IE, but not Netscape/Mozilla?

simX

Unofficial Mac Genius
Arg, this problem is really annoying me. I have an HTML page with a large JavaScript script embedded in it.

The problem is, it works with Internet Explorer, but it doesn't work with Netscape/Mozilla!

I encountered a similar problem with regards to frames: Internet Explorer would accept frames inside body tags, but Netscape and Mozilla would stoutly refuse to display it.

Are there any common mistakes that are made when writing HTML/JavaScript files that causes Mozilla/Netscape to refuse to run the scripts correctly? I can post some of the code if absolutely necessary.
 
Frames within a BODY tag are plain wrong, that's why some browser won't display anything or an error. Please look those things up at www.w3c.org or use an HTML-Editor to give you the basic structure before struggling with the code. Did you copy the JavaScript somewhere? Does it work in NS/mozilla on THAT site? Can you post the JavaScript here?

The structure for a basic frameset-page should be:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title>PageTitle</title>
</head>

<frameset cols="*,80">
<frame name="NoName" noresize src="(EmptyReference!)">
<frame name="NoName" noresize src="(EmptyReference!)">
<noframes>

<body bgcolor="#ffffff">
<p></p>
</body>

</noframes>
</frameset>

</html>
 
Frames within a BODY tag are plain wrong, that's why some browser won't display anything or an error. Please look those things up at www.w3c.org or use an HTML-Editor to give you the basic structure before struggling with the code. Did you copy the JavaScript somewhere? Does it work in NS/mozilla on THAT site? Can you post the JavaScript here?

The structure for a basic frameset-page should be: (attached as .txt)
 

Attachments

Tisk Tisk Tisk...Now you know the importance of STANDARDS-based web browsing. Fryke hit the nail on the head. IE is so sloppy at HTML intreptretation that it will display almost anything. Kinda reflects the 100,000 holes in XP.
 
Back
Top