DHTML - input type

 
Vista:

input type

Publicado por SaklyeS (1 intervención) el 23/10/2007 16:34:17
Buenas mi duda es la siguiente:

Tengo un input type="image" con un onclick="funcion()"; y tal....

En la funcion tengo esto:

function funcion()
{
var numero1;
var numero2;
numero1= window.open ("preguntas2/pregunta1.htm","preguntas");
numero2= window.open ("ayudasno.htm","imagenes");
}

La cosa es que quiero que al darle a la imagen me carguen dos paginas diferentes en dos iframes.. pero la segunda parte no la hace y no se porque.. a ver si alguno me dice algun metodo diferente para hacerlo, muchas gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de scriptshow
Val: 16
Ha mantenido su posición en DHTML (en relación al último mes)
Gráfica de DHTML

RE:input type

Publicado por scriptshow (24 intervenciones) el 31/10/2007 18:27:29
Saludos,
una solución compatible y sencilla:

<html>
<head>
<script type="text/javascript">
function cambia()
{
window.frames["frame1"].location="pagina_c.htm"
window.frames["frame2"].location="pagina_d.htm"
}
</script>
</head>

<body>
<iframe src="pagina_a.htm" id="frame1" name="frame1"></iframe>
<br><br>
<iframe src="pagina_b.htm" id="frame2" name="frame2"></iframe>
<br><br>
<input type="image" onclick="cambia()">
</body>
</html>

Espero te sea útil.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar