Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am thinking of ways of adding a "chat bar" onto websites. One idea that I had works like this:

  • random site(e.g.): youtube.com/video1
  • w/ "chat bar" attached: chatbar.com/youtube-video1

So basically youtube.com/video1 will be loaded by my webpage (with the "chat bar"). I think google image re

Is this even possible? (I'm pretty sure good does something similar when a user clicks a link from image search results) Point me in the right direction.


share|improve this question

You can use an IFRAME to put another web page into yours. You won't need to do that with Youtube as you can embed it in your page. (Look on youtube for the embed option under sharing.)

You use an IFRAME like this:

<iframe src="chatbar.com/youtube-video1" width="xxx" height="yyy">

Where xxx and yyy are the size you want it.

share|improve this answer
Almost right, the src should contain the page you wish to frame, not the the page that contains the bar. – Rincewind42 Jul 22 '11 at 10:35
Thanks. What about using php echo get_file_content('youtube.com/video1')? Is there any advantage in using Iframe instead of this? – whamsicore Jul 22 '11 at 18:43
That's actually a better solution, because it makes it part of the page. Some people may have their browsers configured to block iframes as they are a security risk. – paulmorriss Jul 25 '11 at 9:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.