Onchange Hyperlink to Webpage

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blackmore
    New Member
    • Mar 2007
    • 25

    Onchange Hyperlink to Webpage

    I simply want to execute a webpage navigation hyperlink through an 'OnChange' event in a select form object. I have tried the following, but neither seem to work:

    onChange="url=/webroot/pagename.cfm"

    onChange="/webroot/pagename.cfm"

    I would guess the solution to this will be quite simple, but I am quite a novice.
    Can anyone help me with this.
  • DutchKingCobra
    New Member
    • Mar 2007
    • 37

    #2
    hi pal

    is this what u want?

    Code:
    <form>
    <select onchange="location.href(this.value);">
    <option value="">Go to :
    <option value="http://www.google.com">Google
    <option value="http://www.lycos.com">Lycos
    </select>
    </form>
    well HTH
    peace

    Comment

    Working...