Need To Run Javascripts On Iframe Which Loads An External Domain
mysite.com has an iframe which loads some differentsite.com. need to run javascript on this loaded iframe document. Single Origin Policy kicks in. i resort to using proxy. its slow
Solution 1:
You could try window.postMessage(message, origin)
(it would be parent.postMessage
from the iframe and iframeElement.contentWindow.postMessage
from the top page) for all of the latest major browsers (Firefox, IE, Safari, Chrome, etc.) and changing/polling window.name
for old browsers.
Post a Comment for "Need To Run Javascripts On Iframe Which Loads An External Domain"