# History button. Go back 2

**URL:** <https://forum.kirupa.com/t/history-button-go-back-2/45529>\
**Category:** Uncategorized\
**Created:** [March 15, 2004, 5:00pm UTC](https://forum.kirupa.com/t/history-button-go-back-2/45529 "2004-03-15T17:00:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![as\_clark20](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@as\_clark20](https://forum.kirupa.com/u/as_clark20)\
**Post date:** [March 15, 2004, 5:00pm UTC](https://forum.kirupa.com/t/history-button-go-back-2/45529/1 "2004-03-15T17:00:47Z")

</div>

How do I make a web browsers button go back 2 steps instead of just 1? This would be fantastic if anyone could help.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 15, 2004, 5:21pm UTC](https://forum.kirupa.com/t/history-button-go-back-2/45529/2 "2004-03-15T17:21:14Z")

</div>

onClick=“history.go(-2)” (for a form button)

“javascript:history.back(2)” (for a ahref)

“javascript:history.go(-2)” (also try it this way)

I think that will do it. Post is it does not. I have not tried it with “2” in the () but it may work.
