![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/04/2005, 09:15
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Otra forma de hacerlo un poquito menos engorrosa, aunque con el mismo resultado, es: Código PHP: <html>
<head>
<title>Untitled</title>
<script>
ancho=800
alto=500
function abrir(){
x=(screen.width-ancho)/2;
y=(screen.height-alto)/2;
propiedades="width="+ancho+",height="+alto+",top="+y+",left="+x;
ventana=window.open('','ventana',propiedades)
}
</script>
</head>
<body>
<form action="http://www.forosdelweb.com/showthread.php" target="ventana" onsubmit="abrir()">
Hilo:<input type="text" name="t" />
<input type="submit" />
</form>
</body>
</html>
Un saludo y nos vamos a Javascript!
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |