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