You are here: irt.org | FAQ | JavaScript | Event | Q611 [ previous next ]
In Netscape Navigator 4 to capture an event you use:
window.onKeyPress = netscapeKeyPress
with no parameters and no parentheses. The user defined function netscapeKeyPress() can accept an event handler created by Netscape Navigator using:
function netscapeKeyPress(e) { // rest of function }
The 'e' references the event object. You'll not be able to pass any extra user defined parameters as part of this event object.
To find out more about events in Netscape take a look at: http://developer.netscape.com/docs/manuals/communicator/jsref/evnt.htm and http://developer.netscape.com/docs/manuals/communicator/jsref/evnt1.htm#1093773.