In article <90********************************@4ax.com>,
pu**@hverdag.dk
says...
I have a function in an external javascript file which I fire from an
onChange event in a <SELECT> tag. Everything works fine in IE but not
in Netscape/Mozilla/Opera. This is my onChange statement:
onChange="division_changed(this.value);"
If I put an alert() in the external script (outside any function) it
executes fine. If I put an alert directly in onChange it also works
fine! But this function that I'm calling simply won't get started.
What do I do to get it to work in these alternative browsers?
I just tried this in IE6, Firefox, Opera 7.something, Mozilla. The only
difference between any of them is that IE alerts nothing, but it still
does the alert. What is the Mozilla JavaScript console telling you?
<script>
function division_changed(value)
{
alert(value);
}
</script>
<form>
<select onChange="division_changed(this.value);">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</form>
--
Hywel I do not eat quiche
http://kibo.org.uk/ http://kibo.org.uk/mfaq.php