Call javascript after page load
Recently I required to call a function after a page load in my project.
onLoad event is available in html but not like afterLoad or offLoad event in html.
I found one of the easiest solution. Just call a function at end of the page. :)
<html> <body> ..... <script>function_name();</script> </body> </html>
Is that so simple?

















It works, and it’s really so simple. Thanks a lot!
I’ve tried to call this script within form tags with no effect. I tried some more sophisticated methods with no success, but things tuned out to be so simple. Good.