Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
This page will block beforeunload. It should still be user-closable at all times.
<script>
window.onbeforeunload = function() {
return "stop";
};
</script>
</body>
</html>