You can do this by using JQuery. ... And to get the Leave message alert will be, $(window).on('beforeunload', function(){ return 'Are you sure you want to leave?'
確定! 回上一頁