dharma
11-21-2002, 02:48 AM
hi i get a blanc screen in netscape 4.0 for the code beneath. it works just fine in IE (as always!) what do u have to take into account when coding for crosspaltform browsers?
<html>
<head>
<title>
loop
</title>
<script language=javascript>
<!--
var weekday=new Array("","Maanantai 18.11","Tiistai 19.11","Keskiviikko 20.11","Torstai 21.11","Perjantai 22.11","Lauantai 23.11");
document.writeln ("<table border=1><tr>");
for (var i = 0; i<weekday.length; i++)
{
document.writeln("<td>",weekday[i],"</td>")
}
document.writeln ("</tr></table>");
-->
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<title>
loop
</title>
<script language=javascript>
<!--
var weekday=new Array("","Maanantai 18.11","Tiistai 19.11","Keskiviikko 20.11","Torstai 21.11","Perjantai 22.11","Lauantai 23.11");
document.writeln ("<table border=1><tr>");
for (var i = 0; i<weekday.length; i++)
{
document.writeln("<td>",weekday[i],"</td>")
}
document.writeln ("</tr></table>");
-->
</script>
</head>
<body>
</body>
</html>