Answers for "js check if page is loaded"


how to check if page is loaded in javascript

<body onload="onload()">

  function onload(){
	console.log("Window Has Been Loaded!")
Posted by: Guest on April-13-2021

how to check if window is loaded javascript

function checkLoaded() {
  return document.readyState === "complete" || document.readyState === "interactive";
console.log(checkLoaded()) // true or false
Posted by: Guest on August-17-2021

Code answers related to "js check if page is loaded"

Browse Popular Code Answers by Language