Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/01/2005, 17:03
yaviz
 
Fecha de Ingreso: diciembre-2004
Mensajes: 371
Antigüedad: 19 años, 4 meses
Puntos: 0
Llamar a una funcion desde un boton

Hola, tengo este codigo ke habre una ventana de un tamaño predefinido desde un enlace y funciona perfecto:

<html>
<head>
<title></title>
<script language="JavaScript">
<!--
function AbreVentana(ruta,ancho,alto,posx,posy,scrol)
{

ventana=open(ruta,"","width=" + ancho + ",height=" + alto + ",scrollbars="+scrol+",left=" + posx + ",top=" + posy + ",resizable=no,titlebar=no,dependent");
ventana.focus();
return ;
}
//-->
</script>
</head>
<body>
<a href="javascript:AbreVentana('resizar1.html',550,5 00,230 ,100, 'no');">ventana</a>
</body>
</html>


ahora lo intente poner en un boton y no me funciona, lo puse asi:

<input type="button" value="Contactar" class="botonsi" onclick="javascript:AbreVentana('contactar.php',55 0,500,230 ,100, 'no'">


Nisiquiera me abre la ventana, que hago mal?