Acara pendengar untuk Element Lost Focus
const form = document.getElementById('form');
form.addEventListener('focusin', (event) => {
event.target.style.background = 'pink';
});
form.addEventListener('focusout', (event) => {
event.target.style.background = 'black';
});
Abiral Lamsal