508 バイト追加
、 2020年2月15日 (土) 07:33
==画面が閉じられる時にメッセージを表示する==
[JavaScript]
=====ブラウザの×ボタンで画面が閉じられる時にメッセージを表示する=====
<html>
<head>
<script>
function confirmBeforeUnload() {
return "本当に画面を閉じてもいいですか?";
}
</script>
</head>
<body onbeforeunload="return confirmBeforeUnload();">
</body>
</html>
{{ref message_beforeunload.lzh}}
----
{{include_html banner_html, "!Javascript"}}