5 var res
= document
.getElementById('res');
6 res
.innerHTML
= res
.innerHTML
+ msg
+ "<br>";
10 var tf
= document
.getElementById('tf');
12 if (window
.testRunner
) {
13 testRunner
.dumpAsText();
17 if (window
.testRunner
) {
18 eventSender
.keyDown('a');
19 eventSender
.keyDown('\r');
25 <body onload=
"test()">
26 This tests that onchange fires when you press Enter to submit a form.
<br>
27 <form name=
"fm" onsubmit=
"log('on submit'); return false;">
28 <input type=
"text" id=
"tf" onchange=
"log('text onchange')" onblur=
"log('text onblur')"></input>