gecko-dev/docshell/test/browser/file_bug1415918_beforeunloa...

18 строки
246 B
HTML

<html>
<head>
<style>
body[fired] {
background-color: #0f0;
}
</style>
<script>
window.onbeforeunload = function() {
document.body.setAttribute("fired", true);
}
</script>
</head>
</body>
FRAME
</body>
</html>