permaculture playing cards*
The moose likes HTML, CSS and JavaScript and the fly likes javascript: history.back() Vs history.go(-1) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript: history.back() Vs history.go(-1)" Watch "javascript: history.back() Vs history.go(-1)" New topic

javascript: history.back() Vs history.go(-1)

Ramna Reddy
Ranch Hand

Joined: Aug 06, 2006
Posts: 96
Hi Ranchers,
Is there any diffrence between javascript: history.back() and history.go(-1)

Thank you in advance,
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
I do not think there is any difference bewteen them.

I perfer go since it is one less keystroke

subject: javascript: history.back() Vs history.go(-1)
Similar Threads
history.go(-1) should fire by itself
Back Button Using Javascript
history.go doubt
History.back problem in Netscape.
back and reload