This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Ok, if you want a simple thing, than pick one of those:
there is 2 problems related to that: 1. Your page might have more than one link on it. 2. If you disabled a link, and user pressed "Stop", the link is disabled, and page is not reloaded.
So, in my code I used more generic approach - after link is clicked, I open a transparent DIV on top of the page. Here is the code I used. It was ment for IE 5.5+, but it should be very simple to port the code for any browser that supports DOM.
Note "spacer.gif" mentioned in the code below is 1px transparent image
[ May 20, 2004: Message edited by: Yuriy Fuksenko ]