menu despegable
CODIGO
<html>
<head>
<title>Menú desplagable con opcion de apertura en una ventana nueva</title>
<script language="javascript">
function gothere(){
var thebox=document.mycombowopt
if (thebox.windowoption.checked){
if (!window.newwindow)
newwindow=window.open("")
newwindow.location=
thebox.example.options[thebox.example.selectedIndex].value
}
else
location=
thebox.example.options[thebox.example.selectedIndex].value
}
</script>
</head>
<body>
<form name="mycombowopt">
<select name="example" size=1>
<option value="http://www.google.com">google</option>
<option value="http://www.region-musical.es.tl">inicio</option>
<option value="http://www.region-musical.es.tl/anime.htm">anime</option>
<option value="http://www.region-musical.es.tl/musica.htm">Subdominios</option>
</select> <input type="button" value="Visitar" onClick="gothere()"> <br>
<input type="checkbox" name="windowoption" value="ON"><font face="Verdana" size="2">Abrir en una ventana nueva</font>
</form>
</body>
</html>
<html>
<head>
<title>Menú desplagable con opcion de apertura en una ventana nueva</title>
<script language="javascript">
function gothere(){
var thebox=document.mycombowopt
if (thebox.windowoption.checked){
if (!window.newwindow)
newwindow=window.open("")
newwindow.location=
thebox.example.options[thebox.example.selectedIndex].value
}
else
location=
thebox.example.options[thebox.example.selectedIndex].value
}
</script>
</head>
<body>
<form name="mycombowopt">
<select name="example" size=1>
<option value="http://www.google.com">google</option>
<option value="http://www.region-musical.es.tl">inicio</option>
<option value="http://www.region-musical.es.tl/anime.htm">anime</option>
<option value="http://www.region-musical.es.tl/musica.htm">Subdominios</option>
</select> <input type="button" value="Visitar" onClick="gothere()"> <br>
<input type="checkbox" name="windowoption" value="ON"><font face="Verdana" size="2">Abrir en una ventana nueva</font>
</form>
</body>
</html>