javascript - Confirm message on browser page close -


$(window).bind('beforeunload', function() {return 'are shure?';} ); 

how must if user click cancel button page redirect http://mypage.com?

you cannot change happens when user clicks 1 of buttons in dialog. intentional. nobody wants have web sites mess navigation level.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -