<script> function addEventListenerOnce(target, type, listener, addOptions, removeOptions) { target.addEventListener(type, function fn(event) { target.removeEventListener(type, fn, removeOptions); listener.apply(this, arguments, addOptions); }); } addEventListenerOnce(document.getElementById("adCheck"), "click", function (event) { window.open("https://amzn.to/2CxiHWx",'_blank') }); </script>