Dynamic forms and text area




<textarea>


Textarea allows you to have more than one line for text


<script type="text/javascript">

var message = "Hello this is a message, how very interesting, it goes on and on, actually not that exciting, more an example of a scrolling text in a textarea, well time to start from the beginning, thanks for reading!"
var count = 1

function scrollform()
{
self.document.testform.testtextarea.value = message.substring(0, count) + "_"
var zero = (count<=message.length) ? count++ : count = 1
setTimeout("scrollform()", 100)
}

setTimeout("scrollform()", 1000)

</script>

<center>
<form name="testform">
<textarea name="testtextarea" rows=15 cols=30></textarea>
</form>
<center>



Writing then unwriting message in an Textarea example

Page10