location .reload after alert code example
Example: javascript before reload page alert
<script type="text/javascript">
window.onbeforeunload = function () {
return 'Are you really want to perform the action?';
}
</script>
<script type="text/javascript">
window.onbeforeunload = function () {
return 'Are you really want to perform the action?';
}
</script>