<!DOCTYPE html> <html class='reftest-wait'> <script> function onLoadHandler() { document.getElementById('l').value = document.getElementById('i').value; document.documentElement.className=''; } </script> <body onload="onLoadHandler();"> <input style="display:none;" type='text' value='foo bar' id='i'> <textarea id='l'></textarea> </body> </html>