Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Javascript back

Javascript back

Scheduled Pinned Locked Moved Web Development
javascriptquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Megan Forbes
    wrote on last edited by
    #1

    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!

    P R C 3 Replies Last reply
    0
    • M Megan Forbes

      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!

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      how are you getting from 1 to 2 to 3?

      1 Reply Last reply
      0
      • M Megan Forbes

        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!

        R Offline
        R Offline
        RichardGrimmer
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • M Megan Forbes

          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!

          C Offline
          C Offline
          CoolASL
          wrote on last edited by
          #4

          did you try something as:

          window.location = "page.asp";
          

          I hope it helps. Thanks. *** Who said nothing is impossible? I have been doing it for a long time ***

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups