Bonsoir,
J'ai une petite question rapide à poser.
Pourquoi ce p'tit bout de code ne me renvoit pas FONT dans firefox ?
<HTML>
<HEAD>
<TITLE> DOM Demo </TITLE>
<SCRIPT>
function maFonction() {
var toto = bodyNode.firstChild.nodeName;
alert(toto);
}
</SCRIPT>
</HEAD>
<BODY ID="bodyNode">
<FONT SIZE="5">This is the document body.</FONT>
<P ID = "p1Node"><FONT SIZE="5">This is paragraph 1.</FONT>
</P>
<input type="button" value="TEST" onclick="maFonction()" />
</BODY>
</HTML>
Je vous remercie.
Flux__