Нет, но вы можете добиться того же с помощью переменной.
Если вы оберните свой код внутри $(document).ready()
, тогда должно сработать что-то вроде этого:
$(function(){
var closedParam;
$("#id_div").fancybox({
'width': '40%',
'height': '40%',
'autoScale': false,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe',
'onClosed': function (currentArray, currentIndex, currentOpts) {
// Use closedParam here
}
});
// In some other function
closedParam = ... ;
$.fancybox.close();
});