Tryit Editor v1.4

<html> <head> <script type="text/javascript"> message="the%20best%20way%20to%20learn,%20is%20to%20study%20examples.%20-www.w3schools.com"; pos=0; maxlength=message.length+1; function writemsg() { if (pos<maxlength) { txt=message.substring(pos,0); document.forms[0].msgfield.value=txt; pos++; timer=setTimeout("writemsg()",50); } } function stoptimer() { clearTimeout(timer); } </script> </head> <body onload="writemsg()" onunload="stoptimer()"> <form> <input id="msgfield" size="65"> </form> </body> </html> | Your Result:
Edit the code above and click to see the result. | W3Schools.com - Try it yourself