Hey!
Detecting a click from iframe for specific div is definitely doable, but it can be a bit of a headache. One thing I’d suggest is using `window.frames` to access the iframe’s content. Here’s a quick snippet:
```javascript
const iframe = window.frames['yourIframeName'];
iframe.document.getElementById('specificDiv').addEventListener('click', () => {
alert('Div clicked!');
});
```
Make sure the iframe is fully loaded before running this, though. Otherwise, it’ll throw errors.
Detecting a click from iframe for specific div is definitely doable, but it can be a bit of a headache. One thing I’d suggest is using `window.frames` to access the iframe’s content. Here’s a quick snippet:
```javascript
const iframe = window.frames['yourIframeName'];
iframe.document.getElementById('specificDiv').addEventListener('click', () => {
alert('Div clicked!');
});
```
Make sure the iframe is fully loaded before running this, though. Otherwise, it’ll throw errors.
