Iframe not firing clicks or any js event inside content area. I need to run given example by double clicking on content area of iframe, at the moment event can be click on border of iframe not inside content area
<html>
<body>
<div>
<iframe id="chart_output" ondblclick="alert('yes here')" srcdoc="<h1>HTML content</h1>">
</div>
</body>
</html>
You don't have access to anything inside an iframe (for obvious security reasons) and vice versa, which means events fired inside the iframe get propogated, but not outside the iframe, which explains why no events inside get fired. Handle the events in the iframe, or don't use an iframe at all.