function pageLoaded(){ alert('Hello World!'); } </script> </head> <body onload = "pageLoaded();"> </body> </html>