reload page after alert in js 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>