开发者

Close colotbox callback only if a button is clicked inside the colorbox

I use

开发者_StackOverflow
onClosed:function(){ window.location.reload(); }

option to reload the page after the colorbox is closed but I don't want to always perform the reload but only when a user clicks one HTML button inside the colorbox. Colorbox is closed if one clicks outside the window somewhere or the close button... I don't want to close colorbox in these cases, instead I want to perform the reload when one HTML button is clicked. So the button should close the colorbox and rise the callback at the same time.

Any ideas?


Make the HTML button reload the page directly. What's the use of closing the colorbox if you'll reload the page anyway?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜