Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8676335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:10:08+00:00 2026-06-12T20:10:08+00:00

I know I access browser history using history object, specifically, I can use history.back();

  • 0

I know I access browser history using history object, specifically, I can use history.back();, history.forward(); and history.go(item-number) (or history.go(url)). What I am trying to determine where in the browser history the user currently is.

Firefox, for example, may support accessing individual url’s from the history, but that’s not what I’m after, because the history of 20 url’s may contain repeated url’s.

Note that I am not interested in a history within my project – but rather browser history within any user’s session.

For example, a user opened the browser and went through 20 pages – so the history contains 20 objects. Then the user hit back button 4 times – and ended up on the 16th of the 20 pages (or rather 15th of the 0..19 pages). Is there any way to get this current offset (16 or 15) using JavaScript? If yes, then how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T20:10:10+00:00Added an answer on June 12, 2026 at 8:10 pm
    history.length
    

    returns the length of the current history.

    sadly there is no method to figure out where in it you are.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As you know anyone can access strings in an native application using a hex
i want to know if it possible to access the browser bookmarks via Flash.
As far as I know I can access the web.xml <context-param> s by making
Can anyone let me know how can access an element of a list that
Know if it's possible to access the iPhone compass in Safari using JavaScript? I
I'm trying to run only the browser in the system - locking access to
I can access my WCF service typing http://localhost:1592/TourService.svc/GetPoints in browser. However I can't access
How to access WCF webservice using browser? Currently its just implemented as normal webservice.
how can i create an application to read all my browser (firefox) history? i
Can I access Registry from Silverlight Out Of Browser , I just want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.