2 <div id=
"message"></div>
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';