Possible Duplicate:
Javascript that executes after page load
how to call a javascript method as soon as page is loaded.
i have a java script which needs to be called soon after the jsp page is loaded, how to achieve this in javascript.
could any one of you help me pelase.
Regards
You can write a code snippet something like this :-
And if using JQuery then
Or you can have all your JS after all the HTML.
you can even use a function called :–
Last but not the least you could even try out this