I am implementing docusign embedded sending, so I have opened the tagging interface in iframe in my web application, It loads perfectly in iframe but now when user clicks on send button inside tagging interface I wanted to fire one javascript function that will close the iframe but it is not happening I have tried several jquery solutions but it does not work, When I bind the click event on that button class in tagging interface with below code
<iframe id="taggingInterface" width="100%" height="100%" class="absoluteDiv radius6" src="${embeddedSignURL}" frameborder="0"></iframe>
var iframe = $j('#taggingInterface').contents();
iframe.find("button.btn").click(function(){
alert("test");
});
it throws error like Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "https://mohiz.local.com" from accessing a cross-origin frame.