Reputation: 9
Any event to close the jQuery colorbox while it's loading?
Upvotes: 0
Views: 1267
Reputation: 3678
onLoad:function(){ parent.$.fn.colorbox.close();}
use this function on where you are opening the colorbox.
Upvotes: 0
Reputation: 38603
If you're talking about a function, then $.fn.colorbox.close()
will close the colorbox if it's shown, regardless of whether it is still loading. If you're talking about an event, you'll need to elaborate.
Upvotes: 1