目次 |
---|
・例外を発生させる ・ソース ・実行結果 |
<html> <head> <title></title> </head> <body> <script language="JavaScript"> <!-- function a(){ throw new Error("エラー発生"); alert("アラート"); } // --> </script> <input type="button" value="submit" onclick="a()"> </body></html>