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.
自分の Web サイトに向けられたタブが閉じられたときに、強制的に「CLOSE」シグナルをサーバーに送信することはできますか?
(タブを閉じるシグナルのJavascriptアラートで可能かもしれないと考えています)
onunloadたとえば、ユーザーがタブ/ウィンドウ< body onunload="javascriptfunction2server()">を閉じたとき (または新しいページに移動したとき) に JavaScript 関数を実行します。
onunload
< body onunload="javascriptfunction2server()">