On Focus Out JavaScript
const elem = document.getElementById('elemenent')
elem.onmouseout = function () {
alert('mouse out occured!')
}
elezerk
const elem = document.getElementById('elemenent')
elem.onmouseout = function () {
alert('mouse out occured!')
}