i have simple html webpage, guess main page domain is mainDomain.com .
This webpage contain <iframe id="a1" src="http://crossdomain.com/page1.htm">
tag and this <iframe>
tag src is cross domain.
The <iframe id="a1" src="http://crossdomain.com/page1.htm">
contain one more <iframe>
tag and thats src <iframe id="a1" src="http://mainDomain.com/page2.html">
I want to get content of<iframe id="a1" src="http://crossdomain.com/page1.htm">
, using main page or <iframe id="frame2">
.
please help me ,how can i do this?
<!doctype>
<html>
<head></head>
<body>
<h1>hello world</h1>
<iframe src="http://crossdomain.com/page1.htm" id="frame1">
<h2 id="hader1" > hey dad </h2>
<iframe src="http://mainDomain.com/page2.html" id="frame2">
<p>this is second frame</p>
</iframe>
</iframe>
</body>
</html>