Home  >  Article  >  Web Front-end  >  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
WBOYOriginal
2016-05-16 16:34:261308browse

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);
});

The output result is: document object

Statement:
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