/ Published in: JavaScript
This snippet lets you call a Javascript function declared within an IFrame from the parent element of the IFrame
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var iframe = document.getElementById("myframe"); if (iframe) { var iframeContent = (iframe.contentWindow || iframe.contentDocument); iframeContent.targetFunction(); }