Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/06/2008, 10:45
Avatar de almarin
almarin
 
Fecha de Ingreso: junio-2008
Mensajes: 44
Antigüedad: 15 años, 11 meses
Puntos: 4
Respuesta: Cargar ajax al entrar el web. Ayuda please

Tradicionalmente, y sin la utilización de ningún framework, una forma de hacerlo es incluir en el body la función a cargar en el evento onload:

Código HTML:
<script>
function init(){
  alert("hola");
}
</script>
<body onload="javascript:init()">
</body>