Using fancybox to open a pop-up HTML page

I just deal with Fancybox and do it fine by opening a larger image from a thumbnail.

Now, what I would like to do is open the popup window page (HTML page) from the link in the parent window, so that the popup window (child window) gets focus, and the parent page is grayed out until the child is closed again.

Perhaps it is simple, as I am ... I hope someone can help?

Greetings.

+6
source share
1 answer

If you understand correctly, there is an example on the Fancybox website: http://fancyapps.com/fancybox/#examples

Check out the iframe example. Basically set the href of your <a> tag to the desired page, and in Fancybox JS set type: 'iframe' (optional, but if Fancybox cannot correctly identify this type, you can manually set it this way).

Another example: http://jsfiddle.net/VWsRP/1/

+6
source

All Articles