blob: 2bae3ac125c5222a1aaa7b7d4c9a039766bcf293 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<html>
<head><title>History test2</title>
<script src="HistoryHelper.js"></script>
</head>
<body onload="onLoad();">
<div id="statusPanel" style="border: 1px solid red; width: 100%">
History test2....
<div id="Div1" style="border: 1px solid red; width: 100%">
</body>
<SCRIPT type="text/javascript">
function onLoad() {
setTimeout(OnValidateHistoryLength, 100);
}
function OnValidateHistoryLength() {
if (window.history.length != 3) {
onFailure("History_Length_Test", 1, "History length mismatch");
alert(window.history.length);
return false;
}
window.history.back();
return true;
}
function OnEchoHistory() {
alert(window.history.length);
}
</SCRIPT>
</html>
|