<html> <head> <script type = "text/javascript"> <!-- function Warn() { alert ("Welcome to aimtocode.com!"); document.write ("Welcome to aimtocode.com!"); } //--> </script> </head> <body> <p>Click the below button to see the result: </p> <form> <input type = "button" value = "Click Me" onclick = "Warn();" /> </form> </body> </html>