CSS Portal
Run
Search
« Back to
HTML onreadystatechange Event Attribute
<!DOCTYPE html> <html> <head> <title>onreadystatechange event example</title> <script type="text/javascript"> // Internet Explorer and Opera document.onreadystatechange = WaitForComplete; function WaitForComplete() { alert ("EXAMPLE: The state of the document: " + document.readyState); } function OnLoad() { alert ("EXAMPLE: The document has been loaded."); } </script> </head> <body onload="OnLoad()"> <p>onreadystatechange event example</p> </body> </html>
If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!
☕ Buy a Coffee