SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Form Buttons ?

  1. #1
    I'm a college yuppie now! sbdi's Avatar
    Join Date
    Jul 2000
    Location
    Dublin , Ireland
    Posts
    1,271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form Buttons ?

    Hey,

    I've forgotten another basic enough thing (Damn DW!)

    Can anyone tell me how to make a button a link instead of a submit button.

    Thanks
    Back Again

  2. #2
    The knight who said ni! RockyShark's Avatar
    Join Date
    Apr 2003
    Location
    Rockhampton, Australia
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <input type="button" value="Go to whatever" onClick="window.location='yada.html'">
    I think that's it - haven't had to hand code it for ages... Dreamweaver makes you lazy!

  3. #3
    I'm a college yuppie now! sbdi's Avatar
    Join Date
    Jul 2000
    Location
    Dublin , Ireland
    Posts
    1,271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes know what you mean Now I have visual studio.net to make me lazy! Thanks works fine (Except when used in a asp button) Alwayts thought there was a plain html way of doing it!

    Oh well

    Thanks
    Back Again

  4. #4
    The knight who said ni! RockyShark's Avatar
    Join Date
    Apr 2003
    Location
    Rockhampton, Australia
    Posts
    701
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No probs. Should work in ASP as well as long as you escape the quote marks ("). What does ASP use to escape stuff? Try putting a \ before each quote mark and see how that goes.

  5. #5
    SitePoint Guru kish's Avatar
    Join Date
    Jun 2003
    Location
    UK
    Posts
    923
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want just plain html, the way i'd do it is like this:

    Code:
    <form action="yourdestination.htm">
    <input type="submit" value="click here">
    </form>
    Fast Fwd Multimedia
    Web, IT & Cloud Computing Consultancy
    Currently looking for web freelancers. Get in touch!


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
  •