kkreft
4/19/2016 - 10:38 AM

JS detect click inside iframe

$(window).click(function(e) {
  alert('Clicked inside document');
});

$(window).blur(function(e) {
  alert('Clicked out of the window or on the iframe');
});