Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove an certain element in iFrame [duplicate]

I've got a website which has a iFrame in it. The iFrame is linked to an external page. I want to remove some elements in the external website (the website has HTML coding) using Javascript (other methods OK too) WITHOUT anyone clicking on any "remove" buttons or do anything, so it should AUTOMATICALLY remove that element when my webpage and the iframe loads, no one can see it. For example, I want to remove a website's logo and some contents. I've tried lots of methods but they don't work in iFrame.

like image 588
user2248259 Avatar asked Apr 05 '13 08:04

user2248259


1 Answers

Unfortunately you cannot access elements in an Iframe if the Iframe is linked to an external site, there is no workaround using javascript.

like image 71
Ben Green Avatar answered Oct 21 '22 18:10

Ben Green