Suyta2K4
Usuario Novato
Usuario Novato

Hola.
Por qué el siguiente código funciona bien si lo inserto en un archivo html vacío y NO funciona cuando lo inserto en mi index.html. En el primer caso se abre correctamente el link en una ventana nueva. En el segundo caso se abren 2 ventanas nuevas (una en blanco y otra con el propio index.html).
Se entiende ? Me estoy volviendo loca. Alguna ayudita por favor.

<head>
<title>Engines</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>

<body>
<form name="engines">
<div align="center"><center><p><select name="lista" size="1">
<option value="">Search Engines</option>
<option value="">------------------</option>
<option value="http://www.yahoo.com.ar">Yahoo</option>
</select>&nbsp;<INPUT TYPE=IMAGE value="imagen" SRC="go.gif"; onClick="gothere()">
</center></div>
</form>
<script language="javascript">
<!--

function gothere(){
var thebox=document.engines
newwindow=window.open("&quotGiño
newwindow.location=
thebox.lista.options[thebox.lista.selectedIndex].value
if (thebox.windowoption.checked){
if (!window.newwindow)
newwindow=window.open("&quotGiño
newwindow.location=
thebox.lista.options[thebox.lista.selectedIndex].value
}
else
location=
thebox.lista.options[thebox.lista.selectedIndex].value
}
//-->
</script>

</body>
</html>

ATENCIÓN: Este tema no tiene actividad desde hace más de 6 MESES,
te recomendamos abrir un nuevo tema en lugar de responder al actual
Opciones:
Ir al subforo:
Permisos:
TU NO PUEDES Escribir nuevos temas
TU NO PUEDES Responder a los temas
TU NO PUEDES Editar tus propios mensajes
TU NO PUEDES Borrar tus propios mensajes
Temas similares
TemaUsuariosRespuestasVisitasActividad
Por: , el 24/Ago/2005, 18:24
caleta82 KSSA12kAug/05
Por: , el 24/Sep/2004, 17:44
ignizteam0900Sep/04
Por: , el 26/Ago/2004, 03:31
Gothic_Hell Jose_Java12kSep/04
Por: , el 05/Mar/2004, 05:41
Princes1ta chavp TheGhost42kMar/04
Por: , el 11/Jul/2005, 20:41
soft2222 Jallander335kJul/05