Click to See Complete Forum and Search --> : null or not an object...


timandkitty
02-03-2003, 01:04 PM
I am totally clueless on this one.
Here's my code:


<script>
function otherbox() {

if (document.forms.myform.dropdown.value =='new') {
handleClick('show it');

}
else {
handleClick('hide it');
}

}
</script>

<form name=myform>
<div><input type=text name=dropdown onBlur="otherbox();"></div>
</form>


and I'm getting the error message:
"document.forms.myform.dropdown is null or not an object" whenever I click off the textbox. I'm beginning to hate JavaScript. It seems like there is some kind of special syntax for everything I try to do.

Any help would be absolutely fantastic.

timandkitty
02-03-2003, 01:08 PM
I am an idiot.
I had a ) instead of a >.

Thanks for your patience.

pyro
02-03-2003, 01:18 PM
It looks to me like your code is a bit incomplete. What is this line supposed to be doing?

handleClick('show it');