I am using fancybox to show Iframe within it like this..
$(document).ready(function() {
$("#button").click(function() {
开发者_如何学Go $("#iframe").fancybox({
'titlePosition' : 'inside',
'transitionIn' : 'fadeIn',
'transitionOut' : 'reload()'
}).click();
});
});
Iframe within this fancybox has some action & my parent page shows its status.
So What I want is, as soon as I close ['transitionOut']
fancybox, my parent page gets reload..
How can I achieve this ?
Thanks
Found answer :
$("#button").click(function() {
$("#iframe").fancybox({
'titlePosition' : 'inside',
'transitionIn' : 'fadeIn',
'onClosed' : function() {
parent.location.reload(true); ;
}
}).click();
});
精彩评论