3 <title>"autofocus" and the blur() method
</title>
5 input { background:lime }
6 input:focus { background:red }
8 <script language=
"JavaScript" type=
"text/javascript">
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 testRunner
.waitUntilDone();
16 function log(message
) {
17 document
.getElementById("console").innerHTML
+= "<li>"+message
+"</li>";
20 function switchBlur() {
29 if (window
.testRunner
)
30 testRunner
.notifyDone();
35 <p>The form control below should have a green background:
36 <p><input autofocus
onfocus=
"this.blur(); test();" onblur=
"switchBlur()">
38 <ol id=
"console"></ol>