JQuery gets the method of the iframe's document object

  • 2020-03-30 04:05:40
  • OfStack

The purpose of getting the iframe's document object is to manipulate the dom


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

Related articles: