gecko/layout/reftests/reftest-sanity/needs-focus.html

15 lines
318 B
HTML
Raw Normal View History

<!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>