JavaScript Sebelum Muat Ulang Peringatan Halaman

<script type="text/javascript">
 window.onbeforeunload = function () {
  return 'Are you really want to perform the action?';
 }
</script>
Rich Reindeer