mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
16 lines
377 B
HTML
16 lines
377 B
HTML
<input id="field" />
|
|
<div id="message"></div>
|
|
<script>
|
|
var field = document.getElementById('field');
|
|
|
|
field.addEventListener('focusout', function() {
|
|
document.getElementById('message').innerText += 'focusout';
|
|
|
|
field.addEventListener('focusin', function() {
|
|
document.getElementById('message').innerText += 'focusin';
|
|
});
|
|
});
|
|
|
|
field.focus();
|
|
</script>
|