Closed Thread Icon

Topic awaiting preservation: the e (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=7861" title="Pages that link to Topic awaiting preservation: the e (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: the e <span class="small">(Page 1 of 1)</span>\

 
kars10
Bipolar (III) Inmate

From: Europe
Insane since: Mar 2001

posted posted 10-02-2001 17:36

hi all,
I am still trying to understand this freaking e.
it kinda appears everywhere
in functions:
mousemover(e)
and in some things I cant name:
(like) e.pageX or something liek that.

Is that precise enough? :-)
btw, is there a document.body.scrollTop for NS,NS4 and NS6?
k10

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 10-02-2001 18:38

the "e" can really be any variable you want, it's a Netscape thing for capturing events. When you do so it names the event in this case it's "e"



:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-02-2001 18:38

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 10-02-2001 19:00

Its just like any other argument...

function myfunc(astring)
{
document.write("the string passed to this function is " + astring);
}

only, in an event handler, instead of a string, it's an object that contains information about the event that's happening (frequently called the "event" object). IE also provides similar information in an object that is always defined (Event), and not passed to the function - you can get to it just by typing "event" just like any other globally defined variable. IE's way has been standardized by the W3C, so it is also used by the standards-compliant browsers such as Mozilla.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 10-02-2001 20:11

As far as events are concerned, you should definitively read excellent The DOM Event Model tutorial from BrainJar...

window.pageYOffset is Netscape's equivalent for document.body.scrollTop ...

« BackwardsOnwards »

Show Forum Drop Down Menu