300691-1f.html (437B)
1 <!DOCTYPE html> 2 <html> 3 <body> 4 <textarea id="t"></textarea> 5 <script> 6 document.getElementById("t"). 7 appendChild(document.createTextNode("abcdefgh")); 8 document.getElementById("t").appendChild(document.createTextNode("ijkl")); 9 // Flush reflow 10 document.body.offsetWidth; 11 document.getElementById("t"). 12 removeChild(document.getElementById("t").lastChild); 13 </script> 14 </body> 15 </html>