<html> <head> <title></title> </head> <body> <script type="text/javascript"> function a() { alert("test1¥r¥ntest2¥r¥n"); } </script> <button onclick="a()">ボタン</button> </body> </html>