bonjour,

je fais une application en asp.net et j'ai un problème de compatibilité entre les navigateurs.
Firefox n'arrive pas à interpréter la fonction window.onload().

Existe-t-il une autre alternative?

Merci beaucoup
Modifié par jamy (11 May 2006 - 11:51)
Essaie ce bout de code qui chez moi marche très bien sous FF :
<html>
<script>
 // lancer cette fonction quand le document est chargé
 window.onload = function() {
   // crée quelques éléments dans 
   // une page HTML pour l'instant vide
   heading = document.createElement("h1");
   heading_text = document.createTextNode("Grand titre");
   heading.appendChild(heading_text);
   document.body.appendChild(heading);
 }
</script>
</html>
Nickel, ca rentre dans la fonction !!

je te remercie beaucoup!!
Modifié par jamy (11 May 2006 - 09:33)