最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to display one whole website inside another directly..? - Stack Overflow

programmeradmin2浏览0评论

I am kind of new to website development. I am curious to know whether it is possible to display someone's website inside my website like displaying w3schools inside a stackoverflow in a smaller block as a part of the website.

I am kind of new to website development. I am curious to know whether it is possible to display someone's website inside my website like displaying w3schools. inside a stackoverflow. in a smaller block as a part of the website.

Share Improve this question asked May 21, 2015 at 11:18 Vasanth HegdeVasanth Hegde 621 silver badge10 bronze badges 7
  • 6 You can use iframes. – kenorb Commented May 21, 2015 at 11:19
  • Somehow I doubt very much that StackOverflow. would want to embed w3schools – Mark Baker Commented May 21, 2015 at 11:20
  • and one small doubt. Is it legal to include someone's website without their permission..? – Vasanth Hegde Commented May 21, 2015 at 11:39
  • @VasanthHegde - you may find that a lot of sites include headers to prevent them from being framed like this. It is a security measure to stop people from trivially setting up 'phishing' type sites. – Paddy Commented May 21, 2015 at 11:43
  • do one have right to sue if his website being framed..? – Vasanth Hegde Commented May 21, 2015 at 11:53
 |  Show 2 more ments

4 Answers 4

Reset to default 5

You can use iframe.

An inline frame is used to embed another document within the current HTML document.

<iframe src="http://www.w3schools."></iframe>

An IFrame would be the simplest way to do this.

<iframe src="http://www.w3schools.">
</iframe>

http://www.w3/TR/html-markup/iframe.html

you can try this

<iframe src="http://www.w3schools.">
</iframe>

its should be work

<iframe src ="http://www.w3schools." width="500px" height="300px">

发布评论

评论列表(0)

  1. 暂无评论