JSFiddle - React, Tailwind, and code Playground
HTML
<div class="button">Click Here</div>
<iframe src="https://www.bing.com/images" width="200" height="70"></iframe>
CSS
.button {
padding: 20px 20px;
background: gray;
position: absolute;
top: 100px;
cursor: pointer;
}
JavaScript
function clicktransfer(x, y) {
jQuery(document.elementFromPoint(x, y)).click();
}
$( ".button" ).click(function() {
clicktransfer(40, 40);
});