开发者

How to load two websites in one page?

开发者 https://www.devze.com 2022-12-10 11:08 出处:网络
I don\'t want to use frame or iframe because most websites are busting 开发者_如何学Cit nowdays.

I don't want to use frame or iframe because most websites are busting 开发者_如何学Cit nowdays.

what are the possible methods to do this?

The intended behaviour is as if like two browser controls loaded in a website.


What is wrong with an iframe? What do you mean by busting (lots of websites are full of iframes)? You do not want to use iframes within an email but that is a different point!

The advantage is when people click on links within an iframe the content of the iframe gets refreshed, while if you pull the content of a webpage and then display it within a div the user will be moved on loosing the rest of the page.


you can pull it via script (PHP / curl) and display the code from there.

or you can use good old frames, although i wouldn't recommend it.


If you do not want frames, then another option is to do it server side - make your server access the pages and combine them into one response stream.

You can also so this client side using Javascript and DHTML


fopen() returns a file pointer:

$file = fopen("http://www.site.com/", "r");
0

精彩评论

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

关注公众号