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.
Asked
Active
Viewed 384 times
-3

cascading-style
- 488
- 9
- 23
-
1This has already been answered many times. There is no need for another explanation. – Sumner Evans Nov 23 '16 at 04:55
1 Answers
-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