La cuestión es que tengo un menu de lista, integrado en un javascript que utiliza un boton para abrir los enlaces de este, el problema que tengo ahora es que quiero que los enlaces de dicho menu de lista se me abran en nuevas ventanas (_blank), lo he probado con target="_blank" pero no me va..., a continuación pego todo el code que uso a ver si alguien me da alguna idea..., de como hacerlo.
en el <head>
Código HTML:
function jump(menu) { ref=menu.revisiones.options[menu.revisiones.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";}; } function salto() { 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; } }}} }
Código HTML:
<FORM method="post" enctype="application/x-www-form-urlencoded"> <SELECT name="revisiones" class="cajabuscador" id="revisiones" onChange=jump(this.form)> <OPTION value="#arriba" selected>- Seleccione un año </OPTION> <OPTION value="revisiones.php">Año 2000</OPTION> <OPTION value="revisiones_2001.php">Año 2001</OPTION> </SELECT> </TD> <TD width="36" align="center" valign="top"><A href="javascript:salto()"><IMG src="imagenes/boton_ir.gif" width="24" height="22" border="0"></A></TD> <TD width="245"> </TD> </TR> </TABLE> </FORM>
Un saludo,