SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2001
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using Submit Button As Hyperlink

    I want to have a from with just a submit button, then when the submit button is clicked I will be taken to www.mysite.com

    I've tried putting "www.mysite.com" in the action= part of the form tag, but that results in the client being sent to "www.mysite.com?"

    I would like the destination url to be without the ?

    hope someone knows the answer,
    many thanks
    Mike

  2. #2
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <form><input type="button" onClick="location.href='http://www.mysite.com'" value="submit" /></form>
    ck :: bringing chris to the masses.

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2001
    Posts
    80
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks very much!


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
  •