When clicking a link in Firefox 10, the document.readyState == 'complete' until the request from the server actually returns.
Is there a cross-browser way to check if there is a request in progress or not by looking at the current document?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If this clicking a link is going to a new page, a new document is created to load the page into so you won’t ever see a status change on the current document other than an onunload handler.
You can see when your document is being unloaded with window.onunload. There are some browser differences in implementation as this is not a standard’s-backed feature, but it does work in modern browsers.