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.



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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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