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 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2003
    Location
    New York, USA
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Launch Pop Up Menu From Drop Down

    Hi

    I need to launch a Pop Up Menu from a drop down List:

    <form>
    <select name="liste1" size=1>
    <option selected value="">-------Select a Region--------
    <option value="http://mysite.com/test">home
    </select>
    <input type="button" VALUE="OK" onClick="if (form.liste1.selectedIndex != 0) location = form.liste1.options[form.liste1.selectedIndex].value; else alert('Please choose from menu.')">
    </form>

    The drop down list does not need to be the one ablove but I need code that when I select option value it lauches a pop up of the destination page.

    Thanks for any help!
    NYColt

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    626
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How about this one:
    <HTML>
    <HEAD>
    <TITLE>Drop Down Test</TITLE>
    <SCRIPT LANGUAGE="javascript">
    function LinkUp(linkid)
    {
    if(linkid!="")
    {
    NewWin=window.open(linkid,"win1",config="width=500,height=500,location=no,status=no,directories=no,t oolbar=no,scrollbars=no,menubar=no,resizable=no,top=10,left=10")
    NewWin.focus()
    }
    }

    </SCRIPT>
    </HEAD>
    <BODY BGCOLOR="lightgreen">
    <FORM NAME="DropDown">
    <SELECT NAME="DDlinks" onChange="LinkUp(this.options[this.selectedIndex].value)">
    <OPTION SELECTED>Choose a Link
    <OPTION VALUE="http://www.htmlgoodies.com"> HTML Goodies</OPTION>
    <OPTION VALUE="http://www.wsabstract.com"> Website Abstraction</OPTION>
    <OPTION VALUE="http://www.requestcode.com"> Request Code</OPTION>
    </SELECT>
    </FORM>
    </BODY>
    </HTML>

  • #3
    New Coder
    Join Date
    Feb 2003
    Location
    New York, USA
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey That's Perfect!!
    Thanks Just what I needed.

    NYColt


  •  

    Posting Permissions

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