Professional Web Applications Themes

Creating a "back" button - Macromedia Dreamweaver

Sorry for the simple posting, but my brain is fried at this moment. How do I create a back button to my asp form. I have three pages form pages a visitor will fill out with a "to next step" button. I would also like to have "to previous step" button in there as well. When I try to add any other buttons they all just go to the next page. Anyone have anything for me? Thanks....

  1. #1

    Default Creating a "back" button

    Sorry for the simple posting, but my brain is fried at this moment.

    How do I create a back button to my asp form. I have three pages form pages
    a visitor will fill out with a "to next step" button. I would also like to
    have "to previous step" button in there as well. When I try to add any other
    buttons they all just go to the next page.

    Anyone have anything for me?

    Thanks.


    Michelle A. Guest

  2. #2

    Default Re: Creating a "back" button

    On Tue, 15 Jul 2003 15:17:50 -0500, "Michelle A." <meme.com> wrote:
    >Sorry for the simple posting, but my brain is fried at this moment.
    >
    >How do I create a back button to my asp form. I have three pages form pages
    >a visitor will fill out with a "to next step" button. I would also like to
    >have "to previous step" button in there as well. When I try to add any other
    >buttons they all just go to the next page.
    You know, of course, the browser already has such a button built in,
    right? Add this to the source code if you feel you need to duplicate
    it:

    <form action="javascript:history.back()"><input type="submit"
    value="Back"></form>


    Gary
    Gary White Guest

  3. #3

    Default Re: Creating a "back" button

    Gary, Thanks for update. Don't I need to add the script "history.back" to
    my page? If so what is that JavaScript code.

    I add the line to my page. The button appears but it doesn't do anything.

    As you can tell I am pretty green to the world of scripting. Thanks again
    for your help and patience.

    M.


    "Gary White" <replynewsgroup.please> wrote in message
    news:hd19hvchccvgv2s1rfsiove5iv6ijjirll4ax.com...
    > On Tue, 15 Jul 2003 16:39:17 -0500, "Michelle A." <meme.com> wrote:
    >
    > >Doh.. Can you give me a bit more of the break down of how that would
    work?
    > >Is there a seperate script you need to add in as well?
    > >
    > >I alread have the form decalred for the "next step" button, so how would
    I
    > >include this back button into the form.
    >
    > Actually, the <form> in the code I posted would be a separate form
    > from the one used to submit the data. Don't put it inside the
    > <form></form> tags for the existing form. If that's a problem for your
    > design, replace all the code I posted before with this button INSIDE
    > your existing form tags:
    >
    > <input type="button" name="goback" value="Back"
    > onClick="javascript:history.back()">
    >
    >
    > Gary

    Michelle A. Guest

  4. #4

    Default Re: Creating a "back" button

    On Wed, 16 Jul 2003 09:07:25 -0500, "Michelle A." <meme.com> wrote:
    >Gary, Thanks for update. Don't I need to add the script "history.back" to
    >my page? If so what is that JavaScript code.
    No. The history.back is a built in JavaScript function.

    >I add the line to my page. The button appears but it doesn't do anything.
    All I can suggest is to upload the page and post a URL to it. I can't
    tell what's wrong without seeing the code.

    >As you can tell I am pretty green to the world of scripting. Thanks again
    >for your help and patience.
    You're welcome.


    Gary
    Gary White Guest

  5. #5

    Default Re: Creating a "back" button

    On Wed, 16 Jul 2003 15:34:40 -0500, "Michelle A." <meme.com> wrote:
    >Must not have been getting it copied just right or something. I got it to
    >start working now
    >
    >Thanks again.
    Glad to hear it. You're welcome.


    Gary
    Gary White Guest

Similar Threads

  1. Creating a new toolbar button:"undeclared gHINSTANCE and IDB_BITMAP1"
    By nehayadav@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 10
    Last Post: August 22nd, 11:37 AM
  2. Simulate Browser "BACK" button
    By harrillj in forum Dreamweaver AppDev
    Replies: 2
    Last Post: March 22nd, 08:46 PM
  3. Will browser "BACK BUTTON"ever work??
    By zaggleme webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 2
    Last Post: December 8th, 07:35 PM
  4. Question: How can I "expire" a web page (prevent BACK button)
    By VB Programmer in forum ASP.NET General
    Replies: 12
    Last Post: August 5th, 11:30 AM
  5. "Back Button" and populated dropdown lists
    By Henke in forum ASP.NET General
    Replies: 0
    Last Post: July 1st, 01:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139