Insert a new line for Textarea - JavaScript
function go() { var pre=document.createElement('pre'); var text = document.createTextNode("line1\u000A\u000Dline2"); pre.appendChild(text); document.body.appendChild(pre); }
Labels: JavaScript
function go() { var pre=document.createElement('pre'); var text = document.createTextNode("line1\u000A\u000Dline2"); pre.appendChild(text); document.body.appendChild(pre); }
Labels: JavaScript
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home