J
John Wilson
Please comment on the following test code. I'd like to understand why
NS will not run this but IE will:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function handleClick(){
var obj = document.getElementById("comment");
alert(obj.value);
}
// -->
</SCRIPT>
<title>Sample Code</title>
</head>
<body>
<form name="form1" method="post" action="">
<input type="text" name="comment">
<input name="button" type="button" value="clickme"
onClick="handleClick()">
</form>
</body>
</html>
NS will not run this but IE will:
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function handleClick(){
var obj = document.getElementById("comment");
alert(obj.value);
}
// -->
</SCRIPT>
<title>Sample Code</title>
</head>
<body>
<form name="form1" method="post" action="">
<input type="text" name="comment">
<input name="button" type="button" value="clickme"
onClick="handleClick()">
</form>
</body>
</html>