M
Martin
At the top of a page I'm displaying a check box thus:
<input type='checkbox' name='ckbx1' onClick='saveStatus("ckbx1");'>ABC
I then execute the following to set the check box to whatever it was
the last time it was changed:
<script type='text/javascript'>
document.getElementById('ckbx1').checked = getCookie('ckbx1');
</script>
This seems to work ok in IE6 but in Firefox a "...has no properties"
error is generated when the script executes. The same error is
generated when I click on the check box.
What I'm doing wrong ?
<input type='checkbox' name='ckbx1' onClick='saveStatus("ckbx1");'>ABC
I then execute the following to set the check box to whatever it was
the last time it was changed:
<script type='text/javascript'>
document.getElementById('ckbx1').checked = getCookie('ckbx1');
</script>
This seems to work ok in IE6 but in Firefox a "...has no properties"
error is generated when the script executes. The same error is
generated when I click on the check box.
What I'm doing wrong ?