Good day to all.
I have a page that includes an iframe. In this iframe, I have a script with a function called test (). I need to access the function from the parent window. After I asked, I came to this solution:
<div onclick="document.getElementById('targetFrame').contentWindow.teste();">Test</div>
When clicked, the test function should be launched. The problem is that I get the "Permission to Deny Access to Properties" error message.
It seems like a permission error for me, so I changed the file loaded in the iframe permissions to 777, but without any results.
Note. The file loaded in the iframe is not in the same domain.
source
share