I have a popup window that needs to be hidden if there was a click on my site or on the Iframe. What I would like to do is write a method like this:
if(click on my site || click on Iframe){
hide window
}
I've tried this code but it doesn't work:
if($(document).click()===true || $("#clientframe").contents().find(document)===true)(function(){
$("#img-window").hide();
});