Detect Click into Iframe

  1. You added a ‘blur’ event and not a ‘click’ event.

  2. You can’t fetch the iframe itself using wix iframe as it’s sandboxed (unless you create an iframe using custom element).
    If you wish to detect any click inside an iframe, you can try something like:

<!DOCTYPE html>
<body>
  <!-- Put here the UI html elements -->
  <script>
    window.addEventListener('click', () => {
      console.log('CLICKED');
    })
    </script>
</body>
</html>