目次 |
---|
・確認画面の表示 ・ソース ・アンカータグのonclick |
<html> <head> <title></title> </head> <body> <script type="text/javascript"> function a(){ var a = confirm("どちらか選択してください"); alert("戻り値 = " + a); } </script> <input type="button" value="button" name="submit" onClick="a()"> </body>
<a href="http://www.confrage.com/javascript/" onclick="return confirm('本当にいいですか?')">javascriptのトップ</a>