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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:39:16+00:00 2026-05-30T23:39:16+00:00

I am using the Jquery Hash Change to manage my back button. Link: Jquery

  • 0

I am using the Jquery Hash Change to manage my back button.

Link: Jquery Hash Change

It works fine with a link (‘a’) is click, it adds the href as the hash. Links work fine.

My question now is how do i get this to happen when my form button is clicked. I have form buttons that when clicked triggers an ajax call that processes my form and loads the success page (all without leaving the current page). When the submit button is clicked to process the form, it does not create a hash so even though the form was processed, when the back button is click it jumps to the previous page instead of back to my form.

How do i add this functionality so that when forms are submitted via ajax i can get back to the form using the back button? Thanks.

  • 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-05-30T23:39:18+00:00Added an answer on May 30, 2026 at 11:39 pm

    use the window.location object

    set hash

    location.hash='foooo';
    

    get hash

    var hash = location.hash
    

    Set hash in success of form submit ajax

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

Sidebar

Related Questions

I am using the jQuery BBQ: Back Button & Query Library plugin to create
I'm using Ben Almans plugin for hash change tracking: http://benalman.com/projects/jquery-hashchange-plugin/ Also I've modified my
Using jQuery, how do you bind a click event to a table cell (below,
I'm using http://benalman.com/projects/jquery-hashchange-plugin/ to listen for hash changes in my project, but his plugin
Im using a jquery accordian that uses hash marks to differentiate between open accordion
Using jQuery: with the following code I'd like to prevent the href url (in
I'm using jQuery Mobile and trying to figure out how to change a page
I'm using Jquery Mobile pagination plugin and trying to work it into a plugin
I am having problem updating table cell value using jQuery 1.4.2. it all works
I'm using the jQuery plugin hashchange: http://benalman.com/projects/jquery-hashchange-plugin/ $(function(){ $(window).hashchange( function(){ // location.hash }) $(window).hashchange();

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.