Results 1 to 3 of 3

Thread: Option value tag problem.

  1. #1
    Join Date
    Dec 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Option value tag problem.

    I'm having problems making links with the <option value="url name"> code to other pages.

    Would it need Javascript, a button or both?

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    what do you mean url name?

    I would think you would do something like

    Code:
    <select name="webLink">
         <option value="http://www.domain.com">Title</option>
         <option value="http://www.domain.com">Title</option>
         <option value="http://www.domain.com">Title</option>
    </select>
    that would select which link to go to, however you would need to process that somehow, which would either require javascript or some other scripting language as to how its going to result in your going to that link. If you wanted to follow the link once the user selects the title, you could do something like

    Code:
    <select name="webLink" onchange="javascript:window.open(this.value,newWin).focus();">
         <option value="http://www.domain.com">Title</option>
         <option value="http://www.domain.com">Title</option>
         <option value="http://www.domain.com">Title</option>
    </select>
    note
    this is untested so it may not work properly

  3. #3
    Join Date
    Dec 2007
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I mean the "url name" part like a example.
    Thanks, got it working now.

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
  •