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
Post a Comment