Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーがブラウザを閉じたときに JavaScript を実行するにはどうすればよいですか。「onunload」を使用しようとしましたが、F5/更新ボタンを押すたびに呼び出されますか? ありがとう
ページ上の Javascript に関する限り、ブラウザーを閉じても、別のページに移動しても、同じページを更新しても違いはありません。