I normally use the Safari browser, but I have grown quite fond of the Fixefox browser for JavaScript debugging. But I ran into a weird problem today - a in Safari working Javascript acts really weird in Firefox - or maybe it is just me?
Try this out in Firefox and try disabling all checkboxes
// Firefox test
?>
<input type="checkbox" name="box2" value="yes">
For this snippet, document.form.box2.value will be "yes".
Re:Wrong property
jonasbn on 2005-02-10T19:59:08
Thanks:)
Maybe I should get myself a JavaScript desktop reference
jonasbn
It works for me if I change:
to:if (document.form.boxn.value == 'on') {
As to whether this is appropriate behaviour, I have no idea.if (document.form.boxn.checked) {
Btw, I had to remove all those <? ?>. They were giving me all kinds of odd errors
Re:checked?
jonasbn on 2005-02-10T20:01:19
Well I guess it working in Safari confused me, thanks for the response and sorry about the:)
jonasbn