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 -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -