How to Load a page in a dynamically generated iFrame when a link is clicked like a lighbox in jQuery

Posted by Aakash Chakravarthy on Stack Overflow See other posts from Stack Overflow or by Aakash Chakravarthy
Published on 2010-06-09T10:06:19Z Indexed on 2010/06/09 10:22 UTC
Read the original article Hit count: 298

Filed under:
|
|

Hello, I have a list of links eg :

<ul> 
<li><a href="http://google.com">Link1</a></li>
<li><a href="http://example.com">Link2</a></li>
<li><a href="http://example.com/sdf">Link3</a></li>
</ul>

When a link is clicked, a iFrame should be generated in the middle of the screen loading the page like a lightbox.

How to do this with jQuery ?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about iframe