<html>
<body> <textarea id="mytext" cols = 50 rows = 50></textarea>
<script> var str = 'I\'m a JavaScript programmer'; var counter = 0; var timerId = setInterval(function() { if (counter < str.length) { document.getElementById("mytext").innerHTML += str.charAt(counter); counter = counter + 1; } else { clearInterval(timerId); }
}, 200); </script> <body>
</html>