Ganesh
Ganesh

Reputation: 9

Any event to close the colorbox while it's loading?

Any event to close the jQuery colorbox while it's loading?

Upvotes: 0

Views: 1267

Answers (2)

nik
nik

Reputation: 3678

onLoad:function(){ parent.$.fn.colorbox.close();}

use this function on where you are opening the colorbox.

Upvotes: 0

Max Shawabkeh
Max Shawabkeh

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

Related Questions