l***@gmail.com
2014-06-16 10:15:43 UTC
You can see the history lenght, but it does not change as you'd expect.
Back button keeps the history unchanged. If you click somewhere (or cause history to change) it will then update.
This means that, for the history.length to decrease you need to press back twice (or more) and then click a link.
Example 1:
Pages:
Pg1 --click--> Pg2 --click--> Pg3 --back--> Pg2 --click--> Pg4 --click--> Pg5
History.length:
1 --click--> 2 --click--> 3 --back--> 3 --click--> 3 --click--> 4
Example 2:
Pages:
Pg1 --click--> Pg2 --click--> Pg3 --back--> Pg2 --back--> Pg1 --click--> Pg4
History.length:
1 --click--> 2 --click--> 3 --back--> 3 --back--> 3 --click--> 2
Back button keeps the history unchanged. If you click somewhere (or cause history to change) it will then update.
This means that, for the history.length to decrease you need to press back twice (or more) and then click a link.
Example 1:
Pages:
Pg1 --click--> Pg2 --click--> Pg3 --back--> Pg2 --click--> Pg4 --click--> Pg5
History.length:
1 --click--> 2 --click--> 3 --back--> 3 --click--> 3 --click--> 4
Example 2:
Pages:
Pg1 --click--> Pg2 --click--> Pg3 --back--> Pg2 --back--> Pg1 --click--> Pg4
History.length:
1 --click--> 2 --click--> 3 --back--> 3 --back--> 3 --click--> 2
No, you can only navigate forward or back through the browser history. You
can't determine its contents, length, or position...
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
can't determine its contents, length, or position...
--
Michael Harris
Microsoft.MVP.Scripting
--
Please do not email questions - post them to the newsgroup instead.
--
Is there a way to know whether a user is on the first or last page of
the history list? I have images on the page that I need to change
accordingly.
Sent via Deja.com
http://www.deja.com/
the history list? I have images on the page that I need to change
accordingly.
Sent via Deja.com
http://www.deja.com/