Home  >  Article  >  Web Front-end  >  Detailed analysis of jquery iframe operation_jquery

Detailed analysis of jquery iframe operation_jquery

WBOY
WBOYOriginal
2016-05-16 17:13:501103browse

Use jquery to operate iframe

1. There are two ifames in the content

jQuery in leftiframe changes the src code of mainiframe:
$("#mainframe",parent.document.body).attr("src","http://www.radys.cn")

2. If there is an ifame with the ID of mainiframe in the content