Sur Focus Out JavaScript

const elem = document.getElementById('elemenent')

elem.onmouseout = function () {
  alert('mouse out occured!')
}
elezerk