Calling to Display the Alert Dialog onLoad
<html> <head> <title>Dialog from onLoad</title> <script type="text/javascript"> <!-- function opendoc(){ alert("Dialog called ") } --> </script> </head> <body onload="opendoc()"> <b> Test page of onLoad JavaScript call </b> </body> </html>