Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2002
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question onchange="location.href

    I am having a bit of a brainfart
    I want each option below to be link to a different page
    Dehumiders will be link to the Dehumiders page
    Steel File Case will be link to the Steel File Case page
    and so on I have it link to just the
    href='safe_accessories.htm'">



    <td width="260" valign="top" height="23" bgcolor="#FFFFCC" align="center">
    <font face="Arial"><select size='1' name='SelectVehicle' onchange="location.href='safe_accessories.htm'">
    <option selected>Select A Safe Accessories</option>
    <option>Dehumiders</option>
    <option>Steel File Case</option>
    <option>Pistol Rack</option>
    <option>Custom Locks</option>
    <option>Pistol Pockets- 3 Sizes Available</option>
    <option>Electronic Locks</option>
    <option>Gun Safe Prints</option>
    </select>

  • #2
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts
    this is what i would do:

    <form style="margin:0px;">
    <select onChange="location=options[selectedIndex].value;">
    <option value="http://www.website.com/">website.com</option>
    </select>
    </form>

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •