JSFiddle - React, Tailwind, and code Playground

by Sedbol

HTML

<iframe >
    <div id="112" >
    dsf
    
    </div></iframe>

CSS

#112{
    height: 100px;
   width:100px;
   background-color: #ddd;
}

JavaScript

// Here is some code to tell us which element has been clicked
$('iframe').on('click', 'iframe', function() {
    alert('You clicked: ' + $(this).text());
});

function simulateClick(x, y) {
    jQuery(document.elementFromPoint(x, y)).click();
}
simulateClick(100, 30);