Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1104 How can I stop my cursor showing the busy hour glass, when the browser is seemingly doing nothing?

irt.org | Knowledge Base | JavaScript | Pointer | Q1104 [ previous next ]

Q1104 How can I stop my cursor showing the busy hour glass, when the browser is seemingly doing nothing?

If you use:

<a href="javascript:window.open()">text link</a>

the cursor will stick in Netscape Navigator 4+

Do the following instead (on all scripts that do not leave the page with the link):

<a href="javascript:;" onClick="whatever you want; return false">The return false will clear the hourglass</a>

Tyler Bannister writes:

You could solve this problem using an onclick event for each link that references a javascript function, or you could use a return value from the functions that are called directly by the document. For Internet Explorer 5 you can use "return true" but for a quick and easy cross browser solution, you should use document.returnValue = true.

This way you can entirely avoid having to write onclick events for all of your javascript using links, instead you only need to add one line to each of the javascript functions that are directly invoked by your html page:

function donothing() {
  document.returnValue = true;
}

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.