You are not logged in.


Monday, May 18th 2015, 6:40pm

Fullscreen support for modal window (aka lightbox)


I've crawled the forum and find a lot of questions but no real answers about my issue.
I've understood that when you use an iframe you have to specify the allowfullscreen in the iframe parameters to allow to switch to full screen.

But I'm using a lightbox (modal window) and don't find any solution to pass this parameter to shadowbox.

Here is an example…ouvres-piece-1/

The link is using the attribute rel="shadowbox" to invoke the shadowbox functionnality.

Any idea ?

Best regards

Scott Witte


Posts: 252

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message


Sunday, May 31st 2015, 6:32am

Doesn't seem Michael Jackson has touched Shadowbox in years and this is one of it's biggest shortcomings. I tried modifying his code myself but it wasn't worth the effort. Just create a floating div (absolute positioning) and place an iframe in that. If you want to get fancy set the div inside another full window div with a medium alpha image to gray out the background.