wait for the dom to load javascript

52

wait for the dom to load javascript -

document.addEventListener('DOMContentLoaded', (event) => {
  //the event occurred
})

Comments

Submit
0 Comments