Visit Mozilla.org

DOM:document.fgColor

z Mozilla Developer Center, polskiego centrum programistów Mozilli.

« Dokumentacja Gecko DOM

Spis treści

[edytuj] Podsumowanie

fgColor pobiera/ustawia kolor pierwszoplanowy (kolor tekstu) bieżącego dokumentu.

[edytuj] Składnia

kolor = document.fgColor
document.fgColor = kolor 

[edytuj] Parametry

  • kolor jest ciągiem określającym kolor - słownie (np. "red") lub szesnastkowo, jak w HTML-u (np. "#fdfef8").

[edytuj] Przykład

document.fgColor = "white";
document.bgColor = "darkblue";

[edytuj] Specyfikacja

DOM Level 0 - brak w specyfikacji.