Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.location & History

Status
Not open for further replies.

carlosAlberto

IS-IT--Management
Oct 9, 2001
109
GB
Hi all,
Is it possible to specify the history (history.go(-1)).
to e.g. billsJunkYard

The problem is, that i'm using frames and it seems to skip over the last page and return to the first where the frame is defined when using -1.
 
My JavaScript states that you can provide a URL or page Title as a parameter for the history.go() method, but it doesn't give an example how. So I would just try one of the following.
Code:
history.go('Page Title')
history.go(Page Title)
history.go('Page URL')
history.go(Page URL)

ToddWW
 
history.go(-1) eq history.back()

am i wrong?
have you tryed that, Carlos? Victor
 
Vic, you're right. history.back() came first (I think) then history.go() came onto the scene. So the two are identical when using -1 in .go method.

Additionally, when I searched my JavaScript reference, I was suprised to learn that you can script a url or a title page into the history.go() method to go to a certain page.

Anyways, just another way to skin the cat eh!!

ToddWW :)
 
i have never used /heard of/ that too :) Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top