<head> <script type="text/javascript"> function do_alert() { alert("Hello\nWorld\nthis\nis\na\ntest"); } </script> </head> <body> <input type="button" onclick="do_alert()" value="Show alert"> </body>