Discussion:
Browser History Position
(too old to reply)
l***@gmail.com
2014-06-16 10:15:43 UTC
Permalink
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
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.
--
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/
Mayayana
2014-06-16 13:09:56 UTC
Permalink
| On Friday, 5 January 2001 06:30:03 UTC, Michael Harris wrote:

You've responded to a long-outdated newsgroup post.
Maybe it was archived by Google. Maybe you responded
to a reprint on a commercial site. (Some websites try
to make money by reprinting newsgroup posts and
presenting them as their own forum.)

Google archives newsgroup (Usenet) posts with their
search engine. Google also links newsgroups to their
Google Groups service. *But Google Groups is not the
same thing as Usenet newsgroups.* If you don't know what
newsgroups are you might benefit from an explanation:

https://en.wikipedia.org/wiki/Usenet

If you want to take part in current newsgroup discussions
you might want to consider getting a real newsreader.
Newsgroups use NNTP protocol rather than the HTTP protocol
used for webpages. It's a different format, not optimized
for viewing in a browser. For a list of newsreader software,
see here:

https://en.wikipedia.org/wiki/Comparison_of_Usenet_newsreaders

You can then subscribe to a news server to access various
groups. One popular, free server is here:

http://eternal-september.org/

Your ISP may also provide newsgroup access.

Loading...