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