
November 19th, 2001, 06:20 PM
|
|
Senior Citizen
|
|
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019
Time spent in forums: < 1 sec
Reputation Power: 15
|
|
|
Me again.
Here's the lowdown:
1)User clicks on link.
2)onclick handler executes.
3)Unless click event is then explicitly cancelled - by a) returning false, b) cancelling the bubbling of the event (IE/NS6), c) setting the event's returnValue - a property - to false - or d) some other new ways with the latest event model,
4)href is loaded.
If href="#", the hash mark indicates an anchor; since no anchor name is specified, it takes you to the top of the current page (with a reload). Not sure about the IE version question, but
<a href="#" onClick="open_win();return false;">
should work anywhere JavaScript/JScript is enabled.
adios
|