Jquery Detect Click Outside iframe

If you want to close DIV, when clicked outside of iframe?

With this method, you can detect that clicked outside of iframe.
[js]
$(window).blur(function(){
//do something
});
[/js]