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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -