Created
July 20, 2015 15:02
-
-
Save garystorey/1d11356e2342e9f61419 to your computer and use it in GitHub Desktop.
Check browser closes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function checkBrowser() { // triggers on clicking the close button, Alt+F4 , File->Close | |
| if(window.event.clientX < 0 && window.event.clientY < 0) { | |
| window.open("somefile.html", "closewindow",'left=12000,top=1200,width=120,height=50'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment