画面が閉じられる時にメッセージを表示する
- ブラウザの×ボタンで画面が閉じられる時にメッセージを表示する
<html> <head> <script> function confirmBeforeUnload() { return "本当に画面を閉じてもいいですか?"; } </script> </head> <body onbeforeunload="return confirmBeforeUnload();"> </body> </html>
指定されたパートは存在しません。
<html> <head> <script> function confirmBeforeUnload() { return "本当に画面を閉じてもいいですか?"; } </script> </head> <body onbeforeunload="return confirmBeforeUnload();"> </body> </html>
指定されたパートは存在しません。
YAGI Hiroto (piroto@a-net.email.ne.jp)
twitter http://twitter.com/pppiroto
Copyright© 矢木 浩人 All Rights Reserved.