M
Mike
I have a textbox where I'm trying to restrict which keys a user can
hit.
My syntax is onKeyDown="myFunction(event)"
To restrict the keys, Netscape requires the event.preventDefault
method. Problem is, I'm getting and "undefined" for that method. The
event object is ok as I'm able to get event.keyCode fine, but nothing
for preventDefault.
I've even tried something as simple as
onKeyDown="alert(event.preventDefault())", but still get undefined.
Any ideas why?
Thanks,
Mike
hit.
My syntax is onKeyDown="myFunction(event)"
To restrict the keys, Netscape requires the event.preventDefault
method. Problem is, I'm getting and "undefined" for that method. The
event object is ok as I'm able to get event.keyCode fine, but nothing
for preventDefault.
I've even tried something as simple as
onKeyDown="alert(event.preventDefault())", but still get undefined.
Any ideas why?
Thanks,
Mike