(function () { var id = 4; var successResponse = 'https://kyseral.live/?e=4&s=1756498447'; var elements = document.getElementsByClassName("buttonPress-"+4); var clickFunction = function() { window.open(successResponse, '_blank'); return; }; for (var i = 0; i < elements.length; i++) { elements[i].addEventListener('click', clickFunction, false); } })();