By this code I can detect click inside iframe
<script type="text/javascript">
var detector = setInterval(function() {
var elem = document.activeElement;
if (elem && elem.tagName == 'IFRAME')
{
alert("Click detected inside iframe.");
clearInterval(detector);
}
}, 100);
</script>
This is a button code that is inside Iframe.
<button type="button" class="btn btn-primary startpage-btn pull- html-area" ng-if="currentNode.object.data.styles.button1Text" ng-stylez="getButtonStyle(currentNode.object, 'button1')" ng-bind-html="" ng-click="onButtonClick('button1')" compile="currentNode.object.data.styles.button1Text" compile-fields="fields" ng-hide="isButtonHidden()">Next</button>
Is there any way by which I can detect this button click with jquery?