Menu-Open in Alternate Window




Open in alternate window




Put this between your HEAD-tags
<script language="javascript">
<!--
function gothere(){
var mybox=document.boxform
if (mybox.windowoption.checked){
if (!window.newwindow)
newwindow=window.open("")
newwindow.location=mybox.example.options[mybox.example.selectedIndex].value
}
else
location=mybox.example.options[mybox.example.selectedIndex].value
}
//-->
</script>


Then make your menubox
<form name="boxform">
<select name="example" size=1>
<option value="http://winfolinx.com">Winfolinx.com</option>
<option value="http://cnn.com">CNN</option>
<option value="http://geocities.com">Geocities</option>
</select>
<input type="button" value="Go!" onClick="gothere()">
<br>
<input type="checkbox" name="windowoption" value="ON">Open in alternate window
</form>


Free JavaScripts provided
by Winfolinx.com

Back