March 23, 2011

Can one display an entire unmodified website on top of another one in a lightbox?

Question by alumanimac

Is it possible to do this with just javascript/jquery/ajax?
The idea is to make another website display unmodified i.e. display the pure html of the site in a view that hovers over the current view like a lightbox as opposed to in a new window or tab as one usually has in a browser.

Any descriptions, examples, or basic to advanced tutorials and books would be helpful here.

Thanks!

Answer by Starx

IF you want the completely usmodified version, the easiest way is to go with is <iframe>

Example:

<iframe src="http://www.google.com"></iframe>

If you are looking for a lightbox capable of showing iframe or html, here is a list (Thanks to JohnP) http://planetozh.com/projects/lightbox-clones/

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!