how to set style font family in javascript code example Example: change font js selector.style.fontFamily = "Times New Roman";