简体   繁体   中英

Detecting IE10+ loading state

When the browser is doing something, it sometimes displays a circle in the tab to show that the page is loading for example.

Is it possible to detect that, and get the mouse cursor to change to show the user that's IE is doing something?

I understand that I can write javascript to simulate such behavior, but I wanted to know if it possible to capture the state of IE more directly?

Something like this ?

CSS

body { cursor:progress; }
body.loaded { cursor:default; }

JS

window.onload = function() {
 document.getElementsByTagName('body')[0].className+=' loaded';
}

For all browsers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM