This email address is being protected from spambots. You need JavaScript enabled to view it.

JavaScript - How To execute script on document load

 

Way1: append <body> with onLoad call: <body onLoad="my_funct()">


Way2: in js code use syntax:

window.onload=function(){

//execute my code here on document load
}

 

See details onlinetools.org