The following code works fine in IE and gives below mentioned error in Netscape Communicator 4.7.
Is there anything wrong with this code ?
Error - document.form1.option1 has no properties.
<script language="Javascript">
function save() {
document.form1.option1.checked = true;
}
</script>
<html>
<head> </head>
<body>
<form name=form1>
<input type="radio" id=option1 name=option value=internal> <b>Internal</b>
<input type="radio" id=option2 name=option value=external> <b>External</b>
<input type="button" onclick="save()">
</form>
</body>
</html>
Is there anything wrong with this code ?
Error - document.form1.option1 has no properties.
<script language="Javascript">
function save() {
document.form1.option1.checked = true;
}
</script>
<html>
<head> </head>
<body>
<form name=form1>
<input type="radio" id=option1 name=option value=internal> <b>Internal</b>
<input type="radio" id=option2 name=option value=external> <b>External</b>
<input type="button" onclick="save()">
</form>
</body>
</html>