Html Making a submit button link to a URL

HTML
Copy to clipboard
fablecode
  1. <!-- Source: http://www.webdeveloper.com/forum/showthread.php?75069-input-type-button-linking-to-a-URL -->
  2.  
  3. <!-- Solution 1 -->
  4. <input type="submit" name="Button One" id="Button One" value="Some Page" onClick="location.href='somepage.htm'" />
  5.  
  6. <!-- Solution 2 -->
  7. <form action="http://www.the-packrat.com/bylaws.html" method="get">
  8.  <input type="submit" value="BYLAWS">
  9. </form>

    Leave a comment

     
    Visual verification
     

    Related books

    More InfoHTML & CSS For Beginners: Your Step by Step Guide to Easily HtmL & Css Programming  in 7 Days
    HTML & CSS For Beginners: Your Step by Step Guide to Easily HtmL & Css Programming in 7 Days
    More InfoProgramming: Computer Programming For Beginners: Learn The Basics Of HTML5, JavaScript & CSS (Coding, C Programming, Java Programming, Web Design, JavaScript, Python, HTML and CSS)
    Programming: Computer Programming For Beginners: Learn The Basics Of HTML5, JavaScript & CSS (Coding, C Programming, Java Programming, Web Design, JavaScript, Python, HTML and CSS)
    More InfoHTML and CSS: Design and Build Websites
    HTML and CSS: Design and Build Websites
    More InfojQuery For Beginners: Your Guide To Easily Learn jQuery Programming in 7 days
    jQuery For Beginners: Your Guide To Easily Learn jQuery Programming in 7 days
    More InfoHTML & CSS In A Week ...Or Less
    HTML & CSS In A Week ...Or Less
    More InfoPROGRAMMING For BEGINNERS
    PROGRAMMING For BEGINNERS
    More InfoProgramming: Computer Programming for Beginners - Learn the Basics of Java, SQL & C++
    Programming: Computer Programming for Beginners - Learn the Basics of Java, SQL & C++
    More InfoHTML Programming Professional Made Easy: Expert HTML Programming Language Success in a Day for any Computer Users
    HTML Programming Professional Made Easy: Expert HTML Programming Language Success in a Day for any Computer Users