Home > Web Front-end > JS Tutorial > jQuery's method of obtaining the document object of an iframe_jquery

jQuery's method of obtaining the document object of an iframe_jquery

WBOY
Release: 2016-05-16 16:34:26
Original
1334 people have browsed it

The purpose of obtaining the document object of the iframe is to perform dom operations

$(function() {
var result = $('#myframe').prop('contentWindow').document;
console.log(result);
});
Copy after login

The output result is: document object

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