JavaScript Wait Window Load

window.addEventListener('load', function () {
  alert("It's loaded!")
})
Quaint Quelea