placeholder-focus.html (595B)
1 <!DOCTYPE html> 2 <html class='reftest-wait'> 3 <link rel='stylesheet' type='text/css' href='style.css'> 4 <script> 5 function loadHandler() 6 { 7 document.getElementById('t').focus(); 8 } 9 function focusHandler() 10 { 11 document.getElementById('moz').focus(); 12 } 13 function focusHandlerMoz() 14 { 15 document.documentElement.className = ''; 16 } 17 </script> 18 <body onload='loadHandler();'> 19 <textarea id='t' placeholder='foo' onfocus='focusHandler();'></textarea> 20 <textarea id='moz' placeholder='bar' onfocus='focusHandlerMoz();'></textarea> 21 </body> 22 </html>