JavaScript przed ponownym załadowaniem strony

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