I need to understand when does a body\'s onload gets called
onload
I read in w3school that onload=Script to be run when a document load what does
onload=Script to be run when a document load
Onload executes when DOM fully loaded.This means it is executed after end of your page. This is useful when you want to do some task when document is fully loaed.
You can do this in many ways but few ways is here
is similar to