>From what I've read when this is clicked on:
<a href="#" onclick="DoIt()">Some Text</a>
a function defined as:
function DoIt(e) {
if (e) alert("got an event");
}
should work in Mozilla. For IE I'd have to use e=window.event first.
However it doesn't work for me. What *does* work is:
<a href="#" onclick="DoIt(event)">Some Text</a>
The word "event" has to be there. This *doesn't* work:
<a href="#" onclick="DoIt(evt)">Some Text</a>
Is that right? Have I misread the docs?
Here's a simple test program: <http://niof.net/tjs.htm>
--
"The whole aim of practical politics is to keep the populace alarmed --
and hence clamorous to be led to safety--by menacing it with an endless
series of hobgoblins, all of them imaginary." --- H. L. Mencken
Rick Pasotto ri**@niof.net http://www.niof.net