Josh K
Josh K

Reputation: 562

iframe to external sites

  1. Is it legal to have an IFrame on a website which inside has an external website?
  2. In an IFrame is it possible to only show a section of the src that isn't the top left of the site (for instance if there was a chart in the middle of a website, could u have just the chart in your Iframe, or at least start it centred there)
  3. Is there any way to stop my IFrame from auto redirecting me to the external site

for 3: ie

<iframe src="http://fifa.com"></iframe>

Just sends me to fifa instead of actually showing that site in a frame.

Upvotes: 0

Views: 480

Answers (3)

Aaron Digulla
Aaron Digulla

Reputation: 328536

  1. This depends on the rules of the external website. You should at least ask them for permission and only do it if they are OK with it (no replay does not mean they agree!)

  2. No, an IFrame is like a new browser.

  3. If the external site uses JavaScript to break out of frames, then the only way to prevent this is to disable JavaScript in your browser.

Upvotes: 1

Guido Hendriks
Guido Hendriks

Reputation: 5776

  1. I guess it's legal, but it isn't decent.
  2. Ah, so you only wanna show the scores i.e., I guess there should be a way, but again it's not decent, you just don't use such constructions, you just don't!
  3. No! That's exactly the point of that redirect. The only way to do that will be with javascript disabled.

Upvotes: 1

Mike Keller
Mike Keller

Reputation: 615

Instead of using an iframe is it possible to copy the chart and source it back to where you got it from?

Fifa is probably using javascript to prevent you from placing the site in an iframe... and it's generally a pretty shady thing to do.

Upvotes: 1

Related Questions