Created
January 18, 2012 19:33
-
-
Save lslucas/1635075 to your computer and use it in GitHub Desktop.
Execute (outside iframe) javascript function (inside iframe)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#vc dentro de Iframeid | |
parent.document.getElementById("IframeId"); | |
#vc fora dos iframes tentando chamar uma funcão javascript que está dentro de um iframe | |
document.getElementById("IframeId").contentWindow.HelloWorld(); | |
#pegar conteúdo do iframe | |
var iframe = parent.document.getElementById( "iframeReport"); | |
var innerDoc = iframe.contentDocument || iframe.contentWindow.document; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment