mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
25 lines
461 B
HTML
25 lines
461 B
HTML
<!DOCTYPE HTML>
|
|
<div id="stage"></div>
|
|
<script>
|
|
function stage(str) {
|
|
var s = document.getElementById("stage");
|
|
s.textContent = str;
|
|
}
|
|
stage("before");
|
|
setTimeout(function() {
|
|
stage("in timeout");
|
|
});
|
|
setInterval(function() {
|
|
stage("in interval");
|
|
});
|
|
addEventListener("keydown", function() {
|
|
stage("keydown");
|
|
}, false);
|
|
try {
|
|
focus();
|
|
stage("after");
|
|
} catch(e) {
|
|
stage("exception raised");
|
|
}
|
|
</script>
|