Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Event | Q611 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.