M
mav
To stop the keyboard event for the F4-key from propagating in IE I need
to set event.keyCode to 0. But setting keyCode to 0 in Mozilla/Firefox
will throw an exception since it is a read-only property.
So, how do I check if event.keyCode is writable?
(I could do some check to see if the script is run in IE or add a
try/catch for Mozilla, but I would like to know the 'correct' method)
Thanks, MAV
to set event.keyCode to 0. But setting keyCode to 0 in Mozilla/Firefox
will throw an exception since it is a read-only property.
So, how do I check if event.keyCode is writable?
(I could do some check to see if the script is run in IE or add a
try/catch for Mozilla, but I would like to know the 'correct' method)
Thanks, MAV