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

Detailed analysis of jquery iframe operation_jquery

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-05-16 17:13:50
Original
1195 people have browsed it

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