Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

Window overlay over existing window

Can window.open (Javascript) be made to load on top of the existing Window, sort of like a lightbox?

If not, can you recommend a "lightbox" that can contain a full html page with a form & form elements?

I know how to do a lightbox that is info only.

Thanks
Avatar of leakim971
leakim971
Flag of Guadeloupe image

you just need to use any lightbox you previously use but put an iframe inside
Avatar of Richard Korts

ASKER

Ok, i’ll Try that.
leakim971,

My existing use of a lightbox includes these components:

                  <div class="col-sm-7 col-xs-7" style="font-size:18px;padding-bottom:10px;"><b>Markup<a href="images/mkup2_lightbox.jpg" rel="lightbox" title="Marking up or Down a price"></b><div style="font-size:12px;">Markup Instructions</div></a></div>

The lightbox jQuery, etc. is like this:

    <script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script>
    <link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" />	
<script type="text/javascript">
    $(function() {
        $('a[@rel*=lightbox]').lightBox({overlayOpacity: 0.6}); // Select all links that contains lightbox in the attribute rel
    });
</script>	

Open in new window


Do I replace the image with a php (or html) page where the content exists?

Why do I need an iframe? To specify the height, width, border, etc?

Thanks,

Richard
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.