--- title: document.fgColor slug: Web/API/Document/fgColor tags: - DOM - Dokumentacja_Gecko_DOM - Gecko - Wszystkie_kategorie translation_of: Web/API/Document/fgColor ---
{{ ApiRef() }}
fgColor pobiera/ustawia kolor pierwszoplanowy (kolor tekstu) bieżącego dokumentu.
kolor = document.fgColor document.fgColor =kolor
kolor
jest ciągiem określającym kolor - słownie (np. "red") lub szesnastkowo, jak w HTML-u (np. "#fdfef8").document.fgColor = "white"; document.bgColor = "darkblue";
DOM Level 0 - brak w specyfikacji.
{{ languages( { "en": "en/DOM/document.fgColor" } ) }}