Click to See Complete Forum and Search --> : Form Menu Help???


InjectedSS
03-26-2003, 07:30 PM
im wondering if someone can look at for me this script (http://members.aol.com/injectedss/formmenu.txt ) :cool: im trying to get it so that when you click on the link it can either open a new window or send to a frame in a framed page! :confused:

thanks for any help

khalidali63
03-26-2003, 07:57 PM
onChange="if(this.options[selectedIndex].value)window.location.href=(options[selectedIndex].value)">

make sure the above is in 1 straight line

Cheers

Khalid

InjectedSS
03-27-2003, 12:49 PM
Originally posted by Dave Clark
To send it to a different frame:

onChange="
if (this.options[this.selectedIndex].value > ' ') {
top.otherFrameName.location.href = this.options[this.selectedIndex].value;
}
return true;"

To open a new window:

onChange="
if (this.options[this.selectedIndex].value > ' ') {
var ptr = window.open(this.options[this.selectedIndex].value, 'myWin', 'features');
}
return true;"

Dave

the frame one works good but on the new window one is there any way to get it to actually open a new browser window and not just like a pop up box? cause it opens a new window but its like a non-resizeable window :(

i want it to do like in HTML where u would do <a href="" target="NEW"> that kinda thing :cool:

thanks

InjectedSS
03-27-2003, 05:06 PM
Originally posted by Dave Clark
Just leave out the features argument entirely.

Dave

beautiful!!!! your the shiznit :cool: