textarea to innerHTML
it gets delayed -1 character. Here's the script. Paste it and tell me what's wrong
<textarea cols="45" rows="5" name="comment" onkeyPress="writeText(document.form1.comment.value)"></textarea>
Thanks in advance
PS: By the way... How can I make it appear some HTML code when there characters start to be typing?
Instead of using onKeyPress, use onKeyUp or onChange.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread