str.italic in javascript code example
Example: how to change text to italic in javascript
function italicFunc() { document.getElementById("XXX").style.fontStyle = "italics"; }
function italicFunc() { document.getElementById("XXX").style.fontStyle = "italics"; }