change font style in java script.JS code example Example: change font js selector.style.fontFamily = "Times New Roman";