techxplore blog
01 Jun

How to Embed a Web Page on Another Site?

Can a website be embeded on another site? Is it legal or not? I dunno about the legality of which but if you own both sites then it’s permissible I think. I have posted before about My Little Forum a Basic Web Forum. I have used MLF and embedded it as part of the Gender Development Studies (GDS) site.

How does one do this? The trick is to use Inline Frame or what we call IFRAME to embed an HTML document with the main document.

I have a sample code below as used in my project:

<iframe height="410" width="100%" frameBorder="0" src="http://www.techxplore.net/home1/index.php" mce_src="http://www.techxplore.net/home1/index.php"></iframe>

A short explanation:

height - sets the height of the inline frame in pixels
width - sets the width in this case 100% represent that it will use the full width available
frameborder - specifies if a border is shown or not for the frame
scr - specifies the source HTML page to be embeded in the main document

See it working in the Gender Development Studies Forum. There’s no magic in it and it’s very practical to use at times. Well you can try it.

One Response to “How to Embed a Web Page on Another Site?”

  1. velvet Says:

    ohh wow! this is very helpful! thanks! see the sample of what i have done here:

    Search - S.O.S.

Leave a Reply