Hi All,
How to access the functions defined in scripts of URL loaded in iframe using jquery ? Following is the much more elaboration of question :
I have Sample.html :
Test.html : This html file contains iframe with src=sample.html
- <script type="text/javascript" src="jquery-1.5.1.min.js"></script>
- <script type="text/javascript">
- $document.ready(fuction()) {
- var i=10;
- $('#frame1').ready(function()){
- // Need to access the function (sumfunction(10,20)) defined in scripts of Sample.html
- of iframe (frame1) ??
- } </script><head>
- <body >
- <iframe id="frame1" src="sample.html" />
- <body>
In Above code of test.html , i want to access function(sumfunction(20,30))
defined in sample.html of iframe in test.html using jquery.Please suggest, how can i achieve this ?