Click to See Complete Forum and Search --> : problem with pulldownmenu (auto)
ordertheif
12-28-2002, 02:17 PM
hi,
got a problem with this pulldownmenu here
http://javascript.internet.com/navigation/menu-automatic.html
i want to use a new window instead of using the _self frame..
how can i get this to work?
plz tell me
Here's some code for you...
<!--This code goes in the HEAD-->
<script language="JavaScript">
<!-- Hide
function pulldown(form) {
var name = "popup";
var windowproperties = "width=550,height=300,location=yes,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,left=150,top= 150";
var URL = form.menu.options.value;
window.open(URL,name,windowproperties);
}
// End Hide -->
</script>
<!--This code goes in the BODY-->
<form name=form>
<select name=menu SIZE=1 onChange="pulldown(this.form)">
<option value="#">Go to....</option>
<option value="http://www.yahoo.com">Yahoo</option>
</select>
</form>
Note: the var windowproperties all needs to be on one line...Just a reformating by the forums. :(
sinhart
12-28-2002, 06:08 PM
try the script that is written to be used in frames, just a few entries below the one you are trying to use from javascriptsource. It allows targets.:p
ordertheif
12-28-2002, 08:07 PM
hey, that was pretty fast!
thx u 2 :)
You are quite welcome. ;)
sinhart
12-29-2002, 06:58 AM
Originally posted by ordertheif
hey, that was pretty fast!
thx u 2 :)
NoProbs