show alert after page reload javascript 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>