JS berhenti mengarahkan ulang
window.onbeforeunload = function(){
return 'Are you sure you want to leave?';
};
Ugliest Unicorn
window.onbeforeunload = function(){
return 'Are you sure you want to leave?';
};
<a href="javascript:void(0);" id=key onclick="func(0)">foo</a>