JSFiddle - React, Tailwind, and code Playground

by Justin Leveck

HTML

<div class="iframe-wrapper">
  <iframe></iframe>
</div>

CSS

iframe {
  pointer-events: none;
}

JavaScript

$(document).ready(function () {
  $('.iframe-wrapper').on('click', function() {
    $(this).after("<p>click detected!</p>");
  });
});