Hola
Como se abre una ventana Pop under que haga referencia a un link cualquiera. Es decir que al abir la página se abra otra debajo.
Gracias
| |||
| Respuesta: Re: Pop under Cita: Muy bueno lastima que no funciona en firefox 4 antes en el 3.6 andaba
Iniciado por mikel_gomez A ver angelc: 1. Cuando se abre una página (onload, ejecutamos una función javascript para abrir el popunder.
Código:
2. Podemos abrir una ventana por debajo, si creamos una nueva ventana y devolvemos el foco a la ventana principal; de la siguiente manera:<body onload="abrirVentanaDebajo();">
Código:
El ejemplo completo podría ser:function abrirVentanaDebajo(url) {
var ven = window.open(url, 'nom', 'width=400,height=240');
ven.blur();
window.focus();
}
Código:
¿Es lo que quieres?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//ES" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>"popunder"</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript">
<!--
function abrirVentanaDebajo(url) {
var ven = window.open(url, 'nom', 'width=400,height=240');
ven.blur();
window.focus();
}
//-->
</script>
</head>
<body onload="abrirVentanaDebajo('http://www.forosdelweb.com');">
<p>Prueba "popunder"</p>
<p>
<img src="http://www.w3.org/Icons/valid-xhtml11"
alt="xhtml 1.1 válido" height="31" width="88" />
</p>
</body>
</html>
Saludos, Mikel |