2015-04-11 21:42:57 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
2015-04-14 17:54:00 +03:00
|
|
|
<style>
|
|
|
|
/* eliminate the blue glow when focusing the element. */
|
|
|
|
input {
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
</style>
|
2015-04-11 21:42:57 +03:00
|
|
|
<script>
|
|
|
|
function test() {
|
|
|
|
focus();
|
|
|
|
var i = document.querySelector("input");
|
|
|
|
i.focus();
|
2015-05-04 04:24:39 +03:00
|
|
|
}
|
|
|
|
function finish() {
|
|
|
|
setTimeout(function() {
|
|
|
|
document.documentElement.removeAttribute("class");
|
|
|
|
}, 0);
|
2015-04-11 21:42:57 +03:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<body onload="setTimeout(test, 0)">
|
|
|
|
<input value="text text text text text"
|
2015-05-04 04:24:39 +03:00
|
|
|
onfocus="this.select(); finish();">
|
2015-04-11 21:42:57 +03:00
|
|
|
</body>
|
|
|
|
</html>
|