JSFiddle - React, Tailwind, and code Playground
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>");
});
});