mrcalc

I am experiencing some unexpected behaviour using the Javascript history.go method in IE 6.0.2900.2180 and IE 7.0.5730.11

The behaviour is slightly different in IE 6, so I will focus my question on IE 7.

The simple test case for this is as follows:-

Pre-requisites: Run IE

1) Navigate to a website, e.g. www.microsoft.com (Page ID 1)

2) Click a hyperlink (Page ID 2)

3) Click another hyperlink (Page ID 3)

4) type javascript:history.go(-2); into the address bar and press the Enter key twice to run the script.

Expected result:

Page displayed: ID 1

History Stack: ID 1 (current), ID 2, ID 3

Actual result:

Page displayed: ID 1

History Stack: ID 3, ID 1 (current)

Any ideas of what is going wrong in IE7