How to create popup window when browser close

I want to open popup window when browser closed or closed tabs.


window.onUnLoad= function (evt) { 
 //your code goes here"yourpage/some link");

EDIT NOTE: Now it will be called on onUnload event of browser. Try now

Try window.onclose event:

Capture event onclose browser

How to capture the browser window close event?


On below like you can find all events with example of window for javascript:


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.