开发者

Embed external website inside a page [closed]

开发者 https://www.devze.com 2022-12-27 13:23 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not ge开发者_运维技巧
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not ge开发者_运维技巧nerally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

I'd like to load something from website B into a page on website A and contain the functionality of website B within a container on website A.

I tried doing this using a div and jQuery's load() method but I run into cross-domain-scripting issues (I think, it works with a local file but not a remote URL).

I also tried using an iframe but strange things happen (for example, when a link is clicked in the "contained" website B, it reloads the entire browser, losing the content of website A).

I've read about some server-side ways of handling this (and it may just come to that) but ideally I want something completely client side, JavaScript and HTML.

Any ideas?


Do you have any contact or privileges to the content of website B? I don't think this is legal.

Contacting the authors of website B isn't an option to work out some agreement?

More info on website copyright


What you are explaining ......... it looks like the site has XSS validations for attack....... I am not sure if you are aware about the seriousness of this iframe trick but it is one of the ways in which Phishing is done.

So please be aware and careful of what you are doing

0

精彩评论

暂无评论...
验证码 换一张
取 消