Does anyone know why the following HTML file causes Netscape Communicator 4.7x to screw up? It claims to be still reading the file but in fact it has got severely stuck - it needs manually killing with Task Manager.
I apologise for the length of code but this is the shortest snippet I can use to demonstrate the problem.
I apologise for the length of code but this is the shortest snippet I can use to demonstrate the problem.
Code:
<html>
<head>
<title>Test Page</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<script language="JavaScript1.2">
var WIDTH_LOGO = 288, HEIGHT_LOGO = 64 ;
function CreateLogoDiv()
{
var strSpeech = "\"";
document.write("<LAYER ");
document.writeln("ID=" + strSpeech + "divLogo" + strSpeech);
document.writeln(" STYLE=" + strSpeech + "position:absolute; width:" + WIDTH_LOGO);
document.writeln("; height:" + HEIGHT_LOGO + "; z-index:2;" + strSpeech + ">");
document.writeln("<IMG SRC=" + strSpeech + "some_image.gif" + strSpeech + ">");
document.writeln("</LAYER>");
}
</script>
Hello<BR>
<script language="JavaScript1.2">
// This call below should generate the following HTML, which of course is not
// visible to the user:
// <LAYER ID="divLogo" STYLE="position:absolute; width:288; height:64; z-index:2;">
// <IMG SRC="some_image.gif">
// </LAYER>
CreateLogoDiv();
</script>
</body>
</html>