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