summaryrefslogtreecommitdiffstats
path: root/layout/reftests/reftest-sanity/needs-focus.html
blob: 10fdada2bd0bf204a544c6c3634ae7457ad6f228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!DOCTYPE html>
<html class="reftest-wait">
  <script type="text/javascript">
function focusInput() {
  document.getElementById('i').focus();
}
function done() {
  document.documentElement.className = '';
}
  </script>
  <body onload="focusInput();">
    <input type="text" id="i" onfocus="done();">
  </body>
</html>