Definition and Usage The italics() method is used to display a string in italic. Syntax stringObject.italics() Example In this exa...
Definition and Usage
The italics() method is used to display a string in italic.Syntax
stringObject.italics() |
Example
In this example "Hello world!" will be displayed in italic:<script type="text/javascript"> var str="Hello world!"; document.write(str.italics()); </script> |