Thundor
08-27-2002, 07:37 PM
We are baffled at this phenomenon called "e"
there is this code:
document.captureEvents(Event.MOUSEUP);
document.onmouseup = mouseUp;
and then there is the mouseUp function:
// check for mouseup
function mouseUp(e) {
All of the sudden there is a magical "e". It not visibly passed in to the function like the mouseUp function seems to accept.
Later it refers to the "e" by using
button = e.which;
In trying to do some research on this, We've come across a few of these "e"s. Can anyone explain what this strange and mysterious "e" is?:confused:
Thundor.
there is this code:
document.captureEvents(Event.MOUSEUP);
document.onmouseup = mouseUp;
and then there is the mouseUp function:
// check for mouseup
function mouseUp(e) {
All of the sudden there is a magical "e". It not visibly passed in to the function like the mouseUp function seems to accept.
Later it refers to the "e" by using
button = e.which;
In trying to do some research on this, We've come across a few of these "e"s. Can anyone explain what this strange and mysterious "e" is?:confused:
Thundor.