[JS]クリックイベント
by tea4two
HTML
<!DOCTYPE html>
<html lang="ja">
<head>
</head>
<body>
<p>クリックイベントを登録してみます</p>
<input type="button" value="閉じる" onlick="if( confirm('閉じてもよろしいか?') ) { window.close(); }" />
</body>
</html>
<!--
<!DOCTYPE html>
<html lang="ja">
<head>
<script type="text/javascript">
window.open('close.html');
</script>
</head>
<body>
open
</body>
</html>
-->