Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Source / web / tests / data / domfocusout_domfocusin_events.html
blobee215e0edf12bc7bf4df10d4bece1d47a29c1e2e
1 <input id="field" />
2 <div id="message"></div>
3 <script>
4 var field = document.getElementById('field');
6 field.addEventListener('DOMFocusOut', function() {
7 document.getElementById('message').innerText += 'DOMFocusOut';
9 field.addEventListener('DOMFocusIn', function() {
10 document.getElementById('message').innerText += 'DOMFocusIn';
11 });
12 });
14 field.focus();
15 </script>