JavaScript Reference/Javascript Methods/italics

Материал из Web эксперт
Перейти к: навигация, поиск

"italics()" Example

    
<html>
<body>
<button onclick="var myS = new String("Sample String"); document.write("regular 
string"+myS.italics());">Make a string italics</button>
</body>
</html>



"italics()" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |String                                                        |
+----------------+--------------------------------------------------------------+



"italics()" Syntax, Parameters and Note

Note:
Display string in italics.
    
Syntax:
    
stringName.italics()