summaryrefslogtreecommitdiff
path: root/itjs/state.html
diff options
context:
space:
mode:
Diffstat (limited to 'itjs/state.html')
-rw-r--r--itjs/state.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/itjs/state.html b/itjs/state.html
index 3029932..36f36c0 100644
--- a/itjs/state.html
+++ b/itjs/state.html
@@ -16,16 +16,16 @@ function state_onload()
else
window.setTimeout(state_onload, 90);
}
- window.onbeforeunload = state_onbeforeunload;
+ window[(document.all?'onbeforeunload':'onunload')] = state_onbeforeunload;
}
function state_onbeforeunload()
{
- if (parent.it_state)
+ if (parent.it_state && !parent.it_state.it_state_saved)
parent.it_state.store_state();
}
</script>
</head>
-<body onload="state_onload()"><form action=""><input type="hidden" id="state" value=""></form></body>
+<body onload="state_onload()"><form action="/itjs/state.html" method="get"><input type="hidden" id="state" name="s" value=""></form></body>
</html>
EOF
?>