Home › Forums › JavaScript › load a function on page load › Re: load a function on page load
January 28, 2013 at 11:40 am
#122588
Participant
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..