Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

wait for the dom to load javascript

document.addEventListener('DOMContentLoaded', (event) => {
  //the event occurred
})
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #wait #dom #load #javascript
ADD COMMENT
Topic
Name
5+7 =