função a fazer quando o html feito carregando

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