![]() |
|
|
+ Search |
![]()
|
Feb 24th, 2000 06:10
Martin Honnen,
If you want to excute some javascript from a link it is for various
reasions best to use the onclick handler and not the href:
<A HREF="javascript: void 0"
ONCLICK="your javascript code; return false;"
>
That just excutes the onclick code but cancels the href which prevents
unpleasant effect like the hourglass cursor staying around or the
stopping of animated gifs.