[Javascript] capturing onkeydown in Mozilla

Peter Brunone peter at brunone.com
Sat May 15 23:32:47 CDT 2004


Hey gang,

    As the subject suggests, I'm trying to catch onkeydown in a text
input field and call a function as a result.  If I do this,

<input type="text" name="countryList_searchBox"
id="countryList_searchBox" onkeydown="alert('gabooga')" >

I get the expected alert... BUT when I change the onkeydown event
handler to 

onkeydown="ELB_CheckFilter"

which points to this function

function ELB_CheckFilter(evt) {
	alert("Checking event");
	}

I never get an alert!  What am I doing wrong?


Cheers,

Peter





More information about the Javascript mailing list