Gaya fontSize Properti
- Atur ukuran font unsur ke “x-large”: getElementById(“demo”). gaya. fontSize = “x-besar”;
- Demonstrasi kemungkinan nilai: var listValue = selectTag. pilihan[pilihTag. indeks terpilih]. teks;
- Mengembalikan ukuran font suatu unsur: alert(document.getElementById(“demo”).style.fontSize);