0
what is window.onload ? what is it's usage in javascript?
2 Respostas
+ 14
You're telling Javascript to wait untill web page is completely loaded.
window.onload = function(){
//do something when DOM is ready
}
0
Muito obrigado, tirou minha dúvida.
Thank you, took my doubts.