How to open fancybox on page load?

Opening fancybox on page load is very simple. just call below given code in document ready eg.

Whatever property you want to set, you can do here. It will directly call fancybox after getting document ready.

We can do it by alternate way also using hidden anchor tag and triggering ‘click’ on that like the code given below :

We can opt any of the method according to our requirement and easily open fancybox on page load.

If you are facing any issue regarding fancybox as well as colorbox then post us your query. We will try to provide you a solution as soon as possible.

You Might Interested In