The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript load a function on page load Re: load a function on page load


you can look for when the document is ready:

$(document).ready(function() {
//your javascript here…

or you can do it by calling onload on the body and then your javascript function. you seem to be missing the “” and the () when you call the function. this sould work fine:

hope this helped..