Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

once content is loaded run function

window.addEventListener('DOMContentLoaded', (event) => {
  myFunction();
});

// Once the DOM has been loaded, the function will run 
 
PREVIOUS NEXT
Tagged: #content #loaded #run #function
ADD COMMENT
Topic
Name
1+1 =