• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Forms
    ASP
    JavaScript
    ·Document Info
    ·Forms
    ·Images
    ·Miscellaneous
    ·Navigation
    ·Script Writers
    ·Contents
    ·What's New?
    CSS
    HTML
    Maps
    Links
    Mail List
    Search
    Sitemap


     

  • Retro 3 jordans
  • Jordan 13 retro
  • Nike free 5.0

  • Radio Button as an Input Button
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • Radio buttons allow for the direct input of a restricted amount of input in a form, but can also submit form values much like a submit button or a link. The following example has four possible selections (Yahoo.com, Go.com, AltaVista.com, and Lycos.com. When the adjoining radio button is selected you will be redirected to that web site. The URL for each website is passed to the JavaScript function the same way a form variable is passed.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <html>
    <title>CodeAve.com(JavaScript:Radio Button Input)</title>
    <body bgcolor="#FFFFFF">

    <script language="JavaScript">
    function radio_input(url)
    {
    // Re-direct the browser to the url value
    window.location.href = "http://" + url 
    }
    </script>


    <center>

    <form>

    <input type="radio" name="selectname" 
    onClick="JavaScript:radio_input('www.yahoo.com')">
    Yahoo.com

    <input type="radio" name="selectname" 
    onClick="JavaScript:radio_input('www.go.com')">
    Go.com

    <input type="radio" name="selectname" 
    onClick="JavaScript:radio_input('www.altavista.com')">
    AltaVista.com

    <input type="radio" name="selectname" 
    onClick="JavaScript:radio_input('www.altavista.com')">
    Lycos.com

    </form>

    </center>
    </body>
    </html>

     

     

     



    ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
    Server Variables | Response Objects | Random Events | Miscellaneous
    HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
    JavaScript: Document Info | Forms | Images | Navigation | Script Writers
    CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

    jordan 11 gamma Nike KD VI lebron 11 low