I have one html openning inside an iframe.One javaScript function is defined there say getSomething().Now in the parent page I have one external javaScript file.Is it possible for me to access getSomething() from the external javaScript file ?
1 Answer
As long as both URLs are from the same domain, you can do it. Try calling something similar to the following from the external script file:
document.getElementByID("ReferringiFrame").getSomething();
1 Comment
FarligOpptreden
I saw Andy E's comment on your question. Seems like it might be a duplicate question. Please check the suggested answers there first...