Is it possible to reliably detect the windows close button (top right cross) in all browsers?
Keith
Keith
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
var posX = window.document.body.offsetWidth - window.event.clientX ;
var posY = window.event.clientY;
if (posX <=30 && posY < 0 ) {
// User clicked the close button.
}
I really don't know but I would like to try it.Do you expect these users to respond to your request for feedback?