Strange about Netscape 7.02

admin

Administrator
Staff member
Take a look att this simple code:

<html>
<head>
<title>Untitled Document</title>
<script language="JavaScript">
<!--
function testare() {
document.write(document.forms[0].elements[0].value);
}
//-->
</script>
</head>
<body>
<form>
<input type="text" value=http://www.webdeveloper.com/forum/archive/index.php/"saedhdh" />
</form>
<p><a href="javascript:testare()">test</a></p>
</body>
</html>

This works good in IE6 (SP1), but "fails" in NN7.02.

The problem seems to be the line "document.write...".

In IE the loading stops as soon as this line is executed, but in NN7 it just goes on and on... (doing nothing).

Is this a known error in NN or is there something wrong in my code. :confused:

The real code is longer and includes writing to popups, and so on... but to show the problem I wrote this simple code.

Greetings
/Marcus
 
Back
Top