i wanna detect click INSIDE iframe not onclick on iframe itself i tried onclick event u must click on iframe itself to trigger function i even tried addeventlistener to wind
$(window).click( function(e){
$('#result').text('Clicked inside document');
});
$(window).blur( function(e){
$('#result').text('Clicked out of the window or on the iframe');
});
test http://jsfiddle.net/4vBRe/
To detect only the click on iframe then use mouseover event then blur