How to Compress Websites Into iFrame
If you want to direct your website visitor to an outside site but do not want him to leave your page, you can compress the desired website into an inline frame, or iframe. The HyperText Markup Language (HTML) iframe tag enables you to determine the size of the website as it appears on your page, and it retains the site's functionality so a viewer still has the ability to perform actions such a making a purchase. Launch your computer's text editor software and add the code that enables you to create iframes.
Instructions
-
-
1
Bring up your text editor software and open the Web page file you are modifying.
-
2
Position your cursor in the area where you want the compressed site to display and enter the following iframe code:
<iframe src=" " width=" " height=" ">
</iframe>
Repeat this process for each website you want to present.
-
-
3
Type the desired website address between the quotation marks after the "src" entry. To illustrate:
<iframe src="http://www.site.com" width=" " height=" ">
The site address you specify is the one that displays in the inline frame on your page.
-
4
Enter numeric values after the width and height attributes to indicate the desired dimensions of the compressed site. Type these values in pixels (px) or as percentages (%). For example:
<iframe src="http://www.site.com" width="300px" height="400px">
-
5
Type "<p></p>" paragraph tags between the iframe tags and enter a message for a viewer to see in the event her browser does not allow iframes. For instance:
<iframe src="http://www.site.com" width="300px" height="400px">
<p>Your browser does not allow iframes.</p>
</iframe>
-
6
Save your file and upload it to the Web host that houses your other website documents. The compressed website(s) are now published to your page.
-
1