up
This commit is contained in:
parent
706b1f26b2
commit
0873d43d72
62 changed files with 1695 additions and 142 deletions
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
function setHandler() {
|
||||
window.onbeforeunload = function() {
|
||||
return "There are unsaved changes. Leave now?";
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
<button onclick="setHandler()">Set window.onbeforeunload</button>
|
||||
|
||||
<a href="http://example.com">Leave for EXAMPLE.COM</a>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue