javascript - Redirect on "Leave this Page" button click -


i write following function

window.onbeforeunload = function(){   return 'are sure want leave?'; }; 

now i'm want when user click "leave page" button it's redirect page. possible ?

no it's not. imagine mess web when 1 "take control" on users' browsers in such harmful way. besides fact it's horrible ux grist mill phishing sites.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -