Cyprich.com

Occasionally Relevant Insights from a Software Builder

By

Displaying a Web Site in an IFrame

In an earlier post, I demonstrated a simple technique to create a scrollable region on a web page using CSS. While this is a good way to display static text, it doesn’t work for displaying another web page. The inline frame (IFrame) element in HTML will allow you to do this.

IFrames are typically used for displaying content from another page, such as an advertising banner. You can use frames to accomplish this, but frames are not good for use in cross-browser applications.

The following is an example of the code and output using the IFrame element. You need to specify the size of the window and the web page that will be displayed. The text in between iframe tags is what will appear on web browsers that can’t display the iframe contents.



One Response to Displaying a Web Site in an IFrame

  1. Minnie says:

    Hey Jonah,

    What are the steps to creating a display of a website in an iframe? i understand how to create the iframe but a little confused on how you put the website in the iframe.

    please help.

    thank you

    Minnie

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.