Javascripts > Javascript Forms > Auto Text Converter
Script Title: Auto Text Converter
Description: This script will automatically and repeatedly write text into a input field.
Example: Available
Copy the following code into your <HEAD></HEAD> tags.<script> var ar=new Array(); var msg="Java-scripts.net"; var val=msg.length; function start() { var t=document.frm.txt; val++; if(val<0 || val>msg.length) { val=0; } t.focus(); t.value=msg.substr(0,val); setTimeout("start()",200) } </script>
Copy the following code INTO your <BODY> tag.onLoad="start();"
Copy the following code between the <BODY></BODY> tags of your html page.<form name='frm' action="--WEBBOT-SELF--" method="POST"> <textarea rows="2" name="txt" cols="20" style="font-weight: bold; font-family: ARIAL; font-size: 12pt"></textarea> </form>
Enter your name and email address to have this script sent right to your Inbox for later viewing. First Name Last Name Email