参见英文答案 >
Invoking JavaScript code in an iframe from the parent page16个
我想调用iframe里的javascript函数(点击())
我想调用iframe里的javascript函数(点击())
- <a onclick="abc();" href=# >Call Function which is inside Iframe </a>
- <iframe id=myFrame>
- <script>
- function abc(){
- alert("I am inside Iframe");
- }
- </script>
- </iframe>
如果在JQuery中有解决方案会更好.
谢谢