Copy Code code as follows:
$ (window.parent.document). Find ("#Frm_Main"). attr ("src", url);
Using jquery to manipulate IFRAME
1 contains two ifame.
<iframe id= "Leftiframe" ...</iframe>
<iframe id= "Mainiframe. </iframe>
Leftiframe jquery Changes the SRC code of the Mainiframe:
$ ("#mainframe", Parent.document.body). attr ("src", "http://www.jb51.net")
2 If the content has an ID of mainiframe ifame
<iframe id= "Mainifame" ...></ifame>
Ifame contains a Someid
<div id= "Someid" >you want to get this content</div>
Get the content of Someid
$ ("#mainiframe"). Contents (). Find ("Someid"). html () HTML or $ ("#mainiframe"). Contains (). Find ("Someid"). Text () value
2 as shown above
Mainiframe content Someid content of jquery operations in Leftiframe
$ ("#mainframe", Parent.document.body). Contents (). Find ("Someid"). HTML () or $ ("#mainframe", Parent.document.body). Contents (). Find ("Someid"). Val ()