Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/03/2005, 09:06
Avatar de PatomaS
PatomaS
Colaborador
 
Fecha de Ingreso: marzo-2004
Ubicación: En alguna otra parte
Mensajes: 4.656
Antigüedad: 20 años, 10 meses
Puntos: 63
Hola

Tal vez deberías indicarnos como se hacela recarga de tu página.

Yo he probado tu código (más o menos) e hice la recarga de la página mediante un document.location.refresh y siempre me ejecuta las funciones llamadas por el window.onload...

La página que usé para la prueba fué esta:
Código:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
<head>
<script language="JavaScript">
if (document.all) {
	init();
} else {
	alert('estamos en el else');
	window.onload=init;
}
function init() {
	alert('hola');
}
function recargar() {
	document.location.refresh;
}
</script>
<title>cualquier cosa</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<a href="javascript:recargar()">recarga de la página</a>
</body>
</html>
Felicidad
__________________
¡ hey, hou, hou, hey !