If it is a third-party page, then the iframe embeds a webpage with a different domain name. The browser has security restrictions and is not allowed to access this page. I would like to think about whether there is a way to embed a webpage address that does not contain advertisements
If it is a third-party page, then the iframe embeds a webpage with a different domain name. The browser has security restrictions and is not allowed to access this page. I would like to think about whether there is a way to embed a webpage address that does not contain advertisements
You can remove it with
$("#iframe的ID").contents().find("#iframe中的广告ID").remove()
Generally speaking, there are cross-domain problems when operating embedded iframes,
Upgrade the website to prevent https hijacking. You can apply for a free certificate startsll or let's encrypt