How to call a top level JavaScript function inside iframe simple solution


You can call a top level JavaScript function inside an iframe with the following line;

window.parent.functionName();

 

Advertisements