Latest

recent

JavaScript italics() method

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>
JavaScript italics() method Reviewed by 1000sourcecodes on 02:06 Rating: 5
Powered by Blogger.