--- title: document.fgColor slug: Web/API/Document/fgColor tags: - DOM - Dokumentacja_Gecko_DOM - Gecko - Wszystkie_kategorie translation_of: Web/API/Document/fgColor ---

{{ ApiRef() }}

Podsumowanie

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

Składnia

kolor = document.fgColor
document.fgColor =kolor

Parametry

Przykład

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

Specyfikacja

DOM Level 0 - brak w specyfikacji.

{{ languages( { "en": "en/DOM/document.fgColor" } ) }}