Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the Document</title> </head> <body> <script> // current state alert(document.readyState); // print state changes document.addEventListener('readystatechange', () => alert(document.readyState)); </script> </body> </html>