<html>
<head>
<title>New Page 1</title>
<script language="javascript">
function toggleCheckBox()
{
if(document.hi.one.checked==true)document.hi.two.checked=true;else document.hi.two.checked=false;
}
</script>
</head>
<body>
<form name='hi'>
<input type='checkbox' name='one' onClick='toggleCheckBox()' value="ON">
<input type='checkbox' name='two' value="ON">
</form>
</body>
</html>
No comments:
Post a Comment