Javascript back
-
I have 3 asp pages - the first is a search page (call it 1.asp), the second a results page (call it 2.asp), the third a view of a particular result clicked on by a user (call it 3.asp). Using Javascript to go back from the particular result (3.asp) to the results page (2.asp) - eg
javascript:history.go(-1);
actually throws me back to the original search page (1.asp) so the user has to select their search criteria again. Can anyone tell me where I'm going wrong? Be gentle, I've just spent a year on maternity leave with baby-brain :)
A mum and loving it!
-
I have 3 asp pages - the first is a search page (call it 1.asp), the second a results page (call it 2.asp), the third a view of a particular result clicked on by a user (call it 3.asp). Using Javascript to go back from the particular result (3.asp) to the results page (2.asp) - eg
javascript:history.go(-1);
actually throws me back to the original search page (1.asp) so the user has to select their search criteria again. Can anyone tell me where I'm going wrong? Be gentle, I've just spent a year on maternity leave with baby-brain :)
A mum and loving it!
how are you getting from 1 to 2 to 3?
-
I have 3 asp pages - the first is a search page (call it 1.asp), the second a results page (call it 2.asp), the third a view of a particular result clicked on by a user (call it 3.asp). Using Javascript to go back from the particular result (3.asp) to the results page (2.asp) - eg
javascript:history.go(-1);
actually throws me back to the original search page (1.asp) so the user has to select their search criteria again. Can anyone tell me where I'm going wrong? Be gentle, I've just spent a year on maternity leave with baby-brain :)
A mum and loving it!
Try
javascript:history.back(1)
"Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox -
I have 3 asp pages - the first is a search page (call it 1.asp), the second a results page (call it 2.asp), the third a view of a particular result clicked on by a user (call it 3.asp). Using Javascript to go back from the particular result (3.asp) to the results page (2.asp) - eg
javascript:history.go(-1);
actually throws me back to the original search page (1.asp) so the user has to select their search criteria again. Can anyone tell me where I'm going wrong? Be gentle, I've just spent a year on maternity leave with baby-brain :)
A mum and loving it!