admin 管理员组

文章数量: 1086019

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">

本文标签: javascriptHow to display one whole website inside another directlyStack Overflow