I am trying to prevent fancybox window from closing when the user clicks outside of the fancybox window. I am using fancybox Version: 1.3.1 on IE7, I have tried the following but I have yet to succeed. Any help is very much appreciated.
on fancybox 1.2.6 close
jquery fancybox - prevent close on click outside of fancybox
My Code:
<script type="text/javascript">
$(document).ready(function() {
$("a.fancybox").fancybox({
'width' : '68%',
'height' : '80%',
'autoScale' : true,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
});
</script>
Thanks
I am trying to prevent fancybox window from closing when the user clicks outside of the fancybox window. I am using fancybox Version: 1.3.1 on IE7, I have tried the following but I have yet to succeed. Any help is very much appreciated.
on fancybox 1.2.6 close
jquery fancybox - prevent close on click outside of fancybox
My Code:
<script type="text/javascript">
$(document).ready(function() {
$("a.fancybox").fancybox({
'width' : '68%',
'height' : '80%',
'autoScale' : true,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
});
</script>
Thanks
Share Improve this question edited May 23, 2017 at 10:32 CommunityBot 11 silver badge asked Sep 23, 2010 at 13:07 NoeNoe 411 silver badge8 bronze badges1 Answer
Reset to default 7Try adding this option :
'hideOnOverlayClick' : false
cf API doc : http://fancybox/api