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

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

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

google shop client API returns 400 bad request error while adding an item -