I have 2 files:
-
index.html
-
iframe.html
The file index.html
has an iframe ( iframe.html
).
There is a javascript function in the file index.html
function testePai(){
console.log("teste da função");
}
How do I call this function testePai()
from javascript in iframe.html
?