Kolja Engelmann: bei document.write Farbe ändern ? Hilfe !!!

Beitrag lesen

So sollte es doch funktionieren, oder ? ( klappt aber nicht )
document.write("<font color="#FFFFFF">");
document.write("Your IP address is " + ip);
document.write("</font>");

Nö, kann ja auch nicht, du darfst das color attribut nicht mit " abgrenzen, sonst beendest Du bei javascript den String. Benutze ' und es geht...
document.write("<font color='#FFFFFF'>");
document.write("Your IP address is " + ip);
document.write("</font>");