»
EnglishFrenchVietnamese

Print - TextBox Expander - JavaScriptBank.com

Full version: jsB@nk » Form » Textarea » TextBox Expander
URL: https://www.javascriptbank.com/textbox-expander.html

TextBox Expander © JavaScriptBank.comI get annoyed when I'm trying to fill in a form and I have to scroll left or right to see what I've typed. This little script puts an end to that. The amazing expanding text box!

Full version: jsB@nk » Form » Textarea » TextBox Expander
URL: https://www.javascriptbank.com/textbox-expander.html



JavaScript
<script>// Michael P. Hemmes (trueluck3@hotmail.com)function boxexpand(){// Code to make the script easier to use //boxValue=document.all.thebox.value.lengthboxSize=document.all.thebox.sizeminNum=20 // Set this to the MINIMUM size you want your box to be.maxNum=100 // Set this to the MAXIMUM size you want your box to be.// Starts the main portion of the script //if (boxValue > maxNum)  {  }else{  if (boxValue > minNum)    {      document.all.thebox.size = boxValue    }  else if (boxValue < minNum || boxValue != minNum)    {      document.all.thebox.size = minNum    }}}// End of script //</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form method="POST" action="--WEBBOT-SELF--"><input type="text" onKeypress="boxexpand()" name="thebox" size=20><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->