We Deliver Worldwide! document.querySelector('body').addEventListener('click', function(e) { $(e.target).closest('[rel="modal:close"]')[0]