# Ajax and the browser history

**URL:** https://forum.kirupa.com/t/ajax-and-the-browser-history/201113
**Category:** web dev
**Created:** [September 18, 2006, 5:01pm UTC](https://forum.kirupa.com/t/ajax-and-the-browser-history/201113 "2006-09-18T17:01:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![andr\_in](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/andr_in/32/37_2.png) [@andr\_in](https://forum.kirupa.com/u/andr_in)
#### Post date: [September 18, 2006, 5:01pm UTC](https://forum.kirupa.com/t/ajax-and-the-browser-history/201113/1 "2006-09-18T17:01:06Z")

</div>

Hey,  
I’m working on an ajax-driven site and I ran into the browser history trouble.  
How can I know if the user pressed the back button at all?  
I searched and found a way of changing-and-checking the bit of the URL after the # character. But I couldn’t found any reference to a way of doing it without having to check for anything after an interval.

Is there a way to accomplish that?  
Or if any of you have fixed the browser history of an ajax application, what methods did you use?
