Use alert dialog in only event : onload « Window « JavaScript Tutorial






<html>
    <head>
        <title>Onload Example</title>
        <body onload="alert('Loaded')">
        </body>
</html>








19.9.onload
19.9.1.Window onload event
19.9.2.Use alert dialog in only event