Professional Web Applications Themes

onclick link to next web page - HTML & CSS

How do I get a button in a form to go to the next html page when the button is clicked, .... onclick?? I can't get it to link to the next page, I have a few options in the form so need more than the Submit Option. Thanks...

  1. #1

    Default onclick link to next web page

    How do I get a button in a form to go to the next html page when the button is
    clicked, .... onclick??

    I can't get it to link to the next page, I have a few options in the form so
    need more than the Submit Option.

    Thanks

    Kenatbnis Guest

  2. #2

    Default Re: onclick link to next web page

    <input type="button" name="b1" value="Click Me" onclick="location.href='myPage.htm'">

    Ken
    The ScareCrow Guest

  3. #3

    Default Re: onclick link to next web page

    Be aware that this will not carry the form data forward to the next page.
    If you want to do that, the only way is to submit the form to the next page
    which will pick up the data from the form, and store it into hidden fields
    on the current page - you would need to use some server scripting to do
    this....

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "The ScareCrow" <infokrcaldwell.com> wrote in message
    news:d53nrm$ldb$1forums.macromedia.com...
    > <input type="button" name="b1" value="Click Me"
    > onclick="location.href='myPage.htm'">
    >
    > Ken

    Murray *TMM* Guest

Similar Threads

  1. can't link to and ASP page
    By jimvarney in forum Macromedia Dynamic HTML
    Replies: 0
    Last Post: January 3rd, 12:44 AM
  2. Replies: 0
    Last Post: January 2nd, 06:37 AM
  3. Start Page gives incorrect link to site's main page
    By #1SoxFan in forum Macromedia Contribute Connection Administrtion
    Replies: 2
    Last Post: February 18th, 06:52 PM
  4. Replies: 2
    Last Post: November 26th, 05:08 AM
  5. Link target to blank page and sizing new page
    By David Powers in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 13th, 11:38 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