aspose file tools*
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
Author

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,
Ramna.
Eric Pascarello
author
Rancher

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

I perfer go since it is one less keystroke
lol

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