Ver Mensaje Individual
  #12 (permalink)  
Antiguo 12/06/2006, 09:44
Avatar de tunait
tunait
Moderadora
 
Fecha de Ingreso: agosto-2001
Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 22 años, 9 meses
Puntos: 381
Pero no debes poner los paréntesis en la llamada a la función en el evento.

Mira este ejemplo

Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>

<body>
<script type="text/javascript">
function pepe(){
	alert('hola')
}
window.onresize = pepe
</script>
</body>
</html>