Answers for "alertifyjs refresh page"

CSS
0

javascript before reload page alert

<script type="text/javascript">
 window.onbeforeunload = function () {
  return 'Are you really want to perform the action?';
 }
</script>
Posted by: Guest on July-29-2020
1

alert without page refresh

// note that its the return false; that prevents the page refresh.
<button onclick="alert('Hello'); return false;">Click</button>
Posted by: Guest on July-07-2020

Browse Popular Code Answers by Language