Javascript Alters Textarea Size

[Total: 0    Average: 0/5]

The dimensions of the textarea are set by javascript variables.

Body Code:

<script>
var col=50;
var row=10;
var a ='';
    a+='<form name=f1>';
    a+='<textarea cols='+col+' rows='+row+' name=t1>text inside textarea</textarea>';
    a+='</form>';
document.write(a);
</script>

Times Viewed: 144

Leave a Reply

Your email address will not be published. Required fields are marked *