Home > Web Front-end > JS Tutorial > JQuery and iframe interaction implementation code_jquery

JQuery and iframe interaction implementation code_jquery

WBOY
Release: 2016-05-16 18:38:13
Original
1122 people have browsed it

How to find elements in the parent page in the iframe:

$('#id', window.parent.document)

How to get the elements in the iframe in the parent page:
$ (this).contents().find("#suggestBox")
Call the methods and variables defined in the parent page in the iframe:
parent.method
parent.value

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template