{{ DomRef() }}
{{ gecko_minversion_header("2.0") }}
the readystatechange event is fired when document.readyState
is changed.
Syntax
document.onreadystatechange = funcRef;
funcRef is a function reference, called when the event is fired.
Example
// alternative to DOMContentLoaded document.onreadystatechange = function () { if (document.readyState == "complete") { initApplication(); } }
See Also
- document.readyState
- Bug 300992 - onreadystatechange (HTML5/Microsoft extension to DOM document) not supported