R
Rg
Hello,
I wrote a minimal page to test browsers.
This displays 2 checkboxes and with java scripting
second checkbox should reflect changes made in the
first one. This works perfectly in internet explorer
and avast browser but it is like a non-scripted
page in netscape and mozilla.
Can somebody tell me what to write to enable scripting
in all browsers.
Thanks in advance.
<html>
<head></head>
<body>
<form id="Doc" name="Doc">
<input type="checkbox" name="Chk1" id="Chk1" onClick="Chk1Cliqued()">1
<BR>
<input type="checkbox" name="Chk2" id="Chk2" >2<BR>
</form>
</body>
<script LANGUAGE="JavaScript">
<!--
void function Chk1Cliqued() {
document.Doc.Chk2.checked=document.Doc.Chk1.checked;
}
-->
</script>
</html>
I wrote a minimal page to test browsers.
This displays 2 checkboxes and with java scripting
second checkbox should reflect changes made in the
first one. This works perfectly in internet explorer
and avast browser but it is like a non-scripted
page in netscape and mozilla.
Can somebody tell me what to write to enable scripting
in all browsers.
Thanks in advance.
<html>
<head></head>
<body>
<form id="Doc" name="Doc">
<input type="checkbox" name="Chk1" id="Chk1" onClick="Chk1Cliqued()">1
<BR>
<input type="checkbox" name="Chk2" id="Chk2" >2<BR>
</form>
</body>
<script LANGUAGE="JavaScript">
<!--
void function Chk1Cliqued() {
document.Doc.Chk2.checked=document.Doc.Chk1.checked;
}
-->
</script>
</html>