Results 1 to 8 of 8
Thread: addevent on form field
Aug 19, 2007, 09:50 #1
- Join Date
- Aug 2006
- Newcastle, England
- 0 Post(s)
- 0 Thread(s)
addevent on form field
I'm trying to use the addevent() method to add an event to a form field.
This is the form field I want to apply my event to:
<input type="text" name="site_search" id="site_search" value="">
container = document.getElementById('site_search'); addEvent(container,'click',applyCapsLockEvent(),false);
This is just a couple of lines of my code, I've simplified it slightly to get to the point. It kicks out an error on this line:
elm.addEventListener(evType, fn, useCapture);
of the addevent() function.
Any ideas of how to solve this please?
Ta very much