Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if window is loaded javascript

function checkLoaded() {
  return document.readyState === "complete" || document.readyState === "interactive";
}
console.log(checkLoaded()) // true or false
 
PREVIOUS NEXT
Tagged: #check #window #loaded #javascript
ADD COMMENT
Topic
Name
7+2 =