Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross site scripting?

Hi I am trying to grab a div from another website using JS.

I have an iframe that loads a page from an external site, I want to grab a div that contains a list so I can style it myself and put it on my site.

Any ideas, would be greatly appreciated.

Thanks.

like image 501
joepour Avatar asked Feb 28 '26 17:02

joepour


1 Answers

Most browsers won't allow you to mess with other websites in iframes via javascript on purpose, because it's an obvious security issue.

like image 168
Tom Dalling Avatar answered Mar 02 '26 06:03

Tom Dalling



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!