-3

I recently looked up how to do this, and it took way too long to find it. So here you guys go, I'm sharing how to make an "ARE YOU SURE YOU WANT TO LEAVE THIS PAGE?" dialog.

cascading-style
  • 488
  • 9
  • 23

1 Answers1

-1

It's really quite simple, in the end...

<HTML>

<head>
</head>

<body onbeforeunload="return 'are you sure?';">
  hello...
  <a href="https://www.batalabs.tk">click to test</a>
</body </HTML>
cascading-style
  • 488
  • 9
  • 23