You are here: irt.org | FAQ | JavaScript | Pointer | Q1104 [ previous next ]
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; }