Holas
1º no me rio (tengo hambrita)
2º no me rio (tengo sueño)
3º me rio (no se que carajo hago aquí dado el caso 1º y 2º)
Al grano.
El script lo pegas tal cual te lo paso entre <head> y </head>
Código PHP:
<script>
function abrir() {
ancho=300;
alto=400
anc=(screen.width-ancho) / 2;
alt=(screen.height-alto) / 2;
window.open('tupopup.htm','','width='+ancho+',height='+alto+',left='+anc+',top='+alt+')');
}
</script>
Luego añades a tu botón esto:
Código PHP:
<a href="#" onClick="abrir()">
<input type="submit" name="Submit" value="abrir">
</a>
Fijate que "
# " es así exactamente.
Si no lo entiendes posteame el codigo del botón para ver como lo colocamos. ok?
Enga, que esto lo terminamos ya mismo