Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q611 Can I pass additional parameters as part of an event object to an event handler?

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.

Feedback on 'Q611 Can I pass additional parameters as part of an event object to an event handler?'

©2018 Martin Webb