Hi, I have some problem making a pop up customized from a form...I didn't have problem to make the pop up, but had some trying to customize it, cause I want it with no toolbar, no location ,no directories, no status,no menubar,no scrollbars,no resizable and width=770,height=600 . I am using an "action" button.
So, I'll copy the HEAD code and the FORM code for you to see....and hope something comes out....
Thanks Very Much!!!
HEAD code
<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
</script>
FORM code
<form action="dummy" method="post"><select name="choice" size="1">
<option value="">Choose a city...</option>
<option value="cities/madrid.html*_blank">Madrid</option>
<option value="cities/amsterdam.html*_blank">Amsterdam</option>
</select><input TYPE="button" VALUE="GO!" onClick="jump(this.form)"></form>