JavaScript Text formatting
JavaScript
Download (.zip)
<SCRIPT LANGUAGE="JavaScript"> <!-- phrase = prompt("Enter some text", "Any text you want") document.write("<BR>You Entered " + phrase) document.write("<BR>UPPER CASE LETTERS: " + phrase.toUpperCase()) document.write("<BR>lower case letters: " + phrase.toLowerCase()) document.write("<BR>No. of Letters: " + phrase.length) document.write("<BR>The first character is " + phrase.charAt(0)) last = phrase.length - 1 document.write("<BR>The last character is: " + phrase.charAt(last)) //--> </SCRIPT>
|