Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
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.documentElement.className = '';
12 }
13 </script>
14 <body onload='loadHandler();'>
15 <textarea id='t' class='ref' onfocus='focusHandler();'>foo</textarea>
16 </body>
17 </html>