Back button in form...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mel

    #1

    Back button in form...

    how can i have a "Prev" button in my form to take me back to previous page
    WITHOUT Javascript ?

    thanks
    Mel


  • Andrew Urquhart

    #2
    Re: Back button in form...

    "Mel" <mehra.heravi@s sa.gov> wrote in message
    news:c1vbha$30o $1@s0b1a68.ssa. gov...[color=blue]
    > how can i have a "Prev" button in my form to take me back to previous[/color]
    page[color=blue]
    > WITHOUT Javascript ?[/color]

    Just use an ordinary link, and if you must, you can style it like a
    button.
    --
    Andrew Urquhart
    - FAQ: http://jibbering.com/faq
    - Archive: http://groups.google.com/groups?grou...ang.javascript
    - Reply: https://www.andrewu.co.uk/about/cont...ject=Re%3A+clj


    Comment

    • Stuart Palmer

      #3
      Re: Back button in form...

      Just do a link back to the forms url......means the user will loose all
      their inputted data. However, you could advise them to use their browsers
      'back' button. This would maintain the inputed values.

      Stu

      "Mel" <mehra.heravi@s sa.gov> wrote in message
      news:c1vbha$30o $1@s0b1a68.ssa. gov...[color=blue]
      > how can i have a "Prev" button in my form to take me back to previous page
      > WITHOUT Javascript ?
      >
      > thanks
      > Mel
      >
      >[/color]


      Comment

      • DB McGee

        #4
        Re: Back button in form...

        Stuart Palmer wrote:[color=blue]
        > Just do a link back to the forms url......means the user will loose
        > all their inputted data. However, you could advise them to use their
        > browsers 'back' button. This would maintain the inputed values.[/color]

        You could just simulate the back button with:

        <input type="button" name="back" value="back" onclick="histor y.go(-1)"/>


        Comment

        • Randy Webb

          #5
          Re: Back button in form...

          DB McGee wrote:[color=blue]
          > Stuart Palmer wrote:
          >[color=green]
          >>Just do a link back to the forms url......means the user will loose
          >>all their inputted data. However, you could advise them to use their
          >>browsers 'back' button. This would maintain the inputed values.[/color]
          >
          >
          > You could just simulate the back button with:
          >
          > <input type="button" name="back" value="back" onclick="histor y.go(-1)"/>
          >
          >[/color]

          Before answering a question, even an answer to the original, one should
          endeavor to read the original question:

          <quote>
          how can i have a "Prev" button in my form to take me back to previous
          page WITHOUT Javascript ?
          </quote>

          To which your solution is utterly useless since it depends on javascript
          and the history being scriptable.

          --
          Randy
          Chance Favors The Prepared Mind
          comp.lang.javas cript FAQ - http://jibbering.com/faq/

          Comment

          • DB McGee

            #6
            Re: Back button in form...

            Randy Webb wrote:[color=blue]
            > DB McGee wrote:[color=green]
            >> Stuart Palmer wrote:
            >>[color=darkred]
            >>> Just do a link back to the forms url......means the user will loose
            >>> all their inputted data. However, you could advise them to use their
            >>> browsers 'back' button. This would maintain the inputed values.[/color]
            >>
            >>
            >> You could just simulate the back button with:
            >>
            >> <input type="button" name="back" value="back"
            >> onclick="histor y.go(-1)"/>[/color][/color]

            I assumed since the question was posted to comp.lang.javas cript that the OP was
            searching for a JavaScript solution :)


            Comment

            Working...