faqts : Computers : Programming : Languages : JavaScript : Links

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

131 of 139 people (94%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How can I avoid the hourglass cursor staying around after someone hit a javascript: link?

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.