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 8101153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:54:57+00:00 2026-06-05T22:54:57+00:00

I have an ajax application that uses hashbanging for navigation and I keep track

  • 0

I have an ajax application that uses hashbanging for navigation and I keep track of the navigation stack in my application. Is there any good way of determine if the user presses the back button in the browser or just pressing a link going to the same url.

Example: Lets assume the user is at http://mysite.com/#home, and then presses a link going to http://mysite.com/#settings. This new settings page contains a link to http//mysite.com/#home. How can i determine if the user presses the link to go back to home or if the users presses the back button on the browser.

Since I internally keep track of the history stack I would like to know if I should push or pop the url of the stack.

One solution would be to poison the url with a counter or timestamp, but it would be nice to avoid.

  • 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-05T22:54:58+00:00Added an answer on June 5, 2026 at 10:54 pm

    Forget about hashbang and use html5 pushState. When the page history changes, he popState event is fired.

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

Sidebar

Related Questions

I have an application that uses AJAX liberally. I have several places where a
I currently have a Palm WebOS application that uses an Ajax.Request to connect to
I have an application that uses a mobile ad provider; the way ad provider
I have a Struts 1 application that uses a little bit a Ajax to
I have some web application that uses jQuery to send AJAX requests to server.
I currently have a Spring Webflow application that uses Webflow + Ajax. I have
I have a web application that uses ajax enabled wcf service Service.scv .... I
I have a web application that uses AJAX to grab JSON data from the
I have an AJAX application that downloads a JSON object and uses the data
I have an application that uses Ajax.Request and its onSuccess event handler in lots

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.