What is the italics method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the italics method?
Rating:
The String object is a global object that is used to manipulate and format strings. The italics method is a formatting method of the String object that is used to convert the normal text to italics. The output of this method is the same as that of the <I> tag.
The syntax of this method is as follows:
The following code will demonstrate the use of this method:
<script language="JavaScript">
var str="This is a string in italics"
document.write(str.italics())
</script>
</body>
Rating:
Was this information helpful?
Other articles
- What is the onreset event handler?
- Note for document.all property.
- What is a button object?
- How to use the blur() method?
- What are global functions?