Can I do it? If yes, than how? I tried unonload, but that works only when I click on an url.
Asked
Active
Viewed 173 times
1 Answers
2
try
window.onbeforeunload = function(){
window.open('url')
}
-
This one is working on Firefox and Chrome, but don't work on Opera. Do you know how to make it to work for opera? – tigyi janos Jun 08 '13 at 12:58
-
it will not work on opera .. [read this answer](http://stackoverflow.com/questions/4683221/cross-browser-onunload-and-onbeforeunload-particularly-opera-11) – Jun 08 '13 at 13:04