A javascript application puts a message in a textarea of an html page. After the message has been put in the textarea, the message immediately disapears.
-- code in javascript application:
xhr.onreadystatechange=function(){
if (4===xhr.readystate){
var code = document.querySelector("textarea")
code.textcontent="test"
}
}
xhr.send()
code in the html file:
<textarea name="textarea" id="textarea" width="1000" style="width:1000px" autocomplete="on"></textarea>
Output in the textarea
test
But the text "test" immediately disappears.
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.