<!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;" value='foo bar' type='text' id='i'> <textarea id='l'></textarea> </body> </html>