Code:
addEvent(document.getElementById('myinput'), 'blur', function(event) {
    alert('The element lost focus (blurred)');
});
Is addEvent() a built-in functionality in JavaScript ? If not, then how will JavaScript understand it when used for an event handler ?

Thanks