|
| |
|
|
Long Island Lune
Posts: 2340 Joined: 6/8/2002 From: New York Status: offline
|
When onClick=" history.go(-3)" doesn' t work? - 1/28/2003 15:10:29
Hi all, What do you do when you have a page that you want to jump back 3 pages but does not jump back 3 pages when using the code below, but in fact only jumps back 2 pages. Scenario: Page 1: Menu Page Page 2: Input a Product Page Page 3: Upload a Photo Page Page 4: Confirm Page w/ button Here is the button: <p align=" center" ><input type=" button" value=" Done " onClick=" history.go(-3)" tabindex=" 1" ></p> I can' t figure out why it will not go back to the " Menu Page" . It keeps jumping back to the " Input A Product Page" . I tried all different numbers for .go, no luck. Is there another way to accomplish this seamingly ease task??? Holy Moly... Thanks, LLLuneeeee
_____________________________
|
|
|
|
Patti
Posts: 125 From: USA Status: offline
|
RE: When onClick=" history.go(-3)" doesn' t ... - 1/28/2003 15:31:21
Is the menu page really in history when you get to the Confirm page with the button? Did you check this before clicking on the button? If not that would explain why it only goes back to the product page. Patti
|
|
|
|
Patti
Posts: 125 From: USA Status: offline
|
RE: When onClick=" history.go(-3)" doesn' t ... - 1/28/2003 20:11:06
Yes I was wondering the same thing. Could be that the Menu Page changes based on what is selected by the user but if not then the url would be the best way to do it. Here is a link to some javascript. Just glanced at the article, not sure if its exactly what you need. http://www.insidedhtml.com/tips/functions/ts14/page1.asp Patti :τΏτ
|
|
|
|
Patti
Posts: 125 From: USA Status: offline
|
RE: When onClick=" history.go(-3)" doesn' t ... - 1/30/2003 14:47:18
Looks like that might be just what you need. Let us know if it works. Patti
|
|
|
|
hhammash
Posts: 1064 Joined: 8/19/2002 Status: offline
|
RE: When onClick=" history.go(-3)" doesn' t ... - 1/30/2003 18:08:19
Hi LLL, If History.go did not work, use Session Variabl as Bobby suggested. I use to to pass variables between pages and works successfully. Regards Hisham
|
|
|
|
hhammash
Posts: 1064 Joined: 8/19/2002 Status: offline
|
RE: When onClick=" history.go(-3)" doesn' t ... - 1/30/2003 18:14:17
Hi Mark, I tried History.go(-3), it is working fine with me. I created 4 pages Page1 Page2 Page3 Page4 In each page I put a link to the next page, and on page 4 I put your button. I browsed Page 1 and moved to page2 then 3 then 4, I clicked the button " DONE" on page 4 and it sent me back to page 1. Regards Hisham
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|