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