text

English[tekst] American[tɛkst]

n. Text, original text; text, textbook; theme; version

v .Texting

Third person singular: texts Plural: texts Present participle: texting Past tense: texted

transform

英[trænsˈfɔ:m] Beauty [trænsˈfɔ:rm]

vt.Transform; change; change

vi.Change

n.[Number] Transformation

Third person singular : transforms present participle: transforming past tense: transformed past participle: transformed

javascript textTransform property syntax

Function:Set the capitalization effect on text

Syntax: Object.style.textTransform="none|capitalize|uppercase|lowercase|inherit"

javascript textTransform property example

<html>
<head>
<script type="text/javascript">
function displayResult()
{
document.getElementById("p1").style.textTransform="capitalize";
}
</script>
</head>
<body>

<p id="p1">This is some text.</p>
<br />

<button type="button" onclick="displayResult()">Convert text</button>

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance