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