4 Tests blur/focus events with modal dialogs
11 function failFocus() {
18 inputElement = document.getElementById("i")
20 inputElement.addEventListener("blur", failBlur, false);
21 inputElement.addEventListener("focus", failFocus, false);
22 window.showModalDialog("modal-dialog-blur-selfclose.html");
24 document.getElementById("status").innerHTML = "FAIL, " + failed;
26 document.getElementById("status").innerHTML = "SUCCESS";
30 <body onload="test()">
31 <input id="i"></input>
32 <div id="status">RUNNING...</div>