»
EnglishFrenchVietnamese

Print - Textarea char Case - JavaScriptBank.com

Full version: jsB@nk » Form » Textarea » Textarea char Case
URL: http://www.javascriptbank.com/textarea-charcase.html

Textarea char Case © JavaScriptBank.comThis JavaScript will change text you type from lower to upper and back. In addition, this JavaScript code will be effected as soon as you type.

Full version: jsB@nk » Form » Textarea » Textarea char Case
URL: http://www.javascriptbank.com/textarea-charcase.html



JavaScript
<script language="javascript">function k(){document.f.t2.value=document.f.t1.value.toLowerCase()document.f.t3.value=document.f.t1.valuedocument.f.t4.value=document.f.t1.value.toUpperCase()setTimeout("k()",100)}function s(){document.f.t1.focus()}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onload="s()"><form name="f"><textarea name=t1 cols=20 rows=2 onFocus="k()"></textarea><br><br></center><font color=red size=+1>Lowercase<textarea name=t2 cols=20 rows=2></textarea>Original<textarea name=t3 cols=20 rows=2></textarea>Uppercase<textarea name=t4 cols=20 rows=2></textarea></form></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->