mat_guthrie
08-26-2003, 06:54 AM
How can I detect when a link has been clicked but the new page is still in the process of loading? The document.location.href property still displays the current location (understandably) not the one that's about to load.
I have a page that reloads every 30 seconds in order to access live data. If a user clicks on a link just prior to the page reloading the reload takes precedence over the link click and this is annoying for the users. When the page is about to reload I want to check to see if a link has just been clicked (and therefore a new page is about to load) and, if so, cancel the reload
Any suggestions as to how I can detect this (without having to put and onclick in every link) would be appreciated
I have a page that reloads every 30 seconds in order to access live data. If a user clicks on a link just prior to the page reloading the reload takes precedence over the link click and this is annoying for the users. When the page is about to reload I want to check to see if a link has just been clicked (and therefore a new page is about to load) and, if so, cancel the reload
Any suggestions as to how I can detect this (without having to put and onclick in every link) would be appreciated