oshirowanen
oshirowanen

Reputation: 15925

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?

Upvotes: 0

Views: 73

Answers (1)

Rob Sedgwick
Rob Sedgwick

Reputation: 5226

Something like this ?

CSS

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

JS

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

For all browsers

Upvotes: 1

Related Questions