Replacing Submit Button with text link?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Replacing Submit Button with text link?

    Is there a way to accomplish the same thing as <input type='submit' value='Submit'> using an anchor tag?
    jip Guest

  2. Similar Questions and Discussions

    1. trouble with replacing submit button with image
      I have a simple login form and one submit button. I have replaced the standard grey button with a costum made button using the appropiate Form>Image...
    2. How do i create a link on the 'submit' button in a form?
      Im having problems. When i test my web page and go to my form page and click submit, i get a 'No Page to Display' error. How do i make a link on...
    3. Submit Button Confirmation Text
      Hi Rhonda, It looks like you were able to get your form to work. Maybe you can help me...I can't get the form to work. I keep getting the...
    4. Link acting as a submit button
      Another option might be to use the heredoc syntax, but having php echo your html is not the most effecient. Just FYI. ...
    5. [PHP] Link acting as a submit button
      Fixing the javascript that you specified still gave me the same errors... Got any more suggestions? Thanks for your help, Matt ...
  3. #2

    Default Re: Replacing Submit Button with text link?

    .oO(jip)
    >Is there a way to accomplish the same thing as <input type='submit'
    >value='Submit'> using an anchor tag?
    Nope, not reliably. You could use an image instead if you don't like the
    standard button, but don't forget the alt attribute to keep the form
    accessible.

    Micha
    Michael Fesser Guest

  4. #3

    Default Re: Replacing Submit Button with text link?

    You can use javascript like

    <a href="javascript:document.formname.submit()">foo</a>

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

  5. #4

    Default Re: Replacing Submit Button with text link?

    .oO(Julian Roberts)
    >You can use javascript like
    >
    ><a href="javascript:document.formname.submit()">foo</a>
    But don't do such stunts without providing a fallback in case JS is not
    available. Nothing is more annoying than a dead link, and IMHO the
    javascript: pseudo-protocol is dead by design.

    Micha
    Michael Fesser Guest

  6. #5

    Default Re: Replacing Submit Button with text link?

    IMHO, the time to worry is when javascript is disabled by default in IE.

    --
    Jules
    [url]http://www.charon.co.uk/charoncart[/url]
    Charon Cart 3
    Shopping Cart Extension for Dreamweaver MX/MX 2004


    Julian Roberts Guest

  7. #6

    Default Re: Replacing Submit Button with text link?

    .oO(Julian Roberts)
    >IMHO, the time to worry is when javascript is disabled by default in IE.
    Doing it properly so that it works regardless of the JS setting is quite
    simple. It makes no sense to build sites that annoy some users because
    of non-working links or other accessibility issues.

    Micha
    Michael Fesser Guest

Posting Permissions

  • You may not post new threads
  • You may 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