...

View Full Version : Launch Pop Up Menu From Drop Down



NYColt
01-30-2004, 04:35 PM
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

requestcode
01-30-2004, 07:38 PM
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,toolbar=no,scrollbars=no,menubar=no,resiza ble=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>

NYColt
01-30-2004, 11:40 PM
Hey That's Perfect!!
Thanks Just what I needed.

NYColt



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum