javascript - JS calling child function from parent in object -


i have child html file being loaded outer html file. child in <object>

<object data="https://www.someurl.com/page.html"         type="text/html" width="100%" height="100%" id="id_of_tag"> </object> 

i need call function in child window standard iframe code not work:

var obj = document.getelementbyid("id_of_tag"); //this works  console.log("obj : " + obj.contentwindow.somefunc("13")); // "obj.contentwindow.somefunc not function" console.log("obj : " + obj.contentdocument.somefunc("13")); // "obj.contentdocument.somefunc not function" 

any ideas?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -