Skip to content

Instantly share code, notes, and snippets.

@Irfan-Ansari
Forked from jaydson/gist:1780598
Last active August 29, 2015 14:14
Show Gist options
  • Save Irfan-Ansari/f4737e5def77dbb3f03b to your computer and use it in GitHub Desktop.
Save Irfan-Ansari/f4737e5def77dbb3f03b to your computer and use it in GitHub Desktop.
var myConfObj = {
iframeMouseOver : false
}
window.addEventListener('blur',function(){
if(myConfObj.iframeMouseOver){
console.log('Wow! Iframe Click!');
}
});
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){
myConfObj.iframeMouseOver = true;
});
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseout',function(){
myConfObj.iframeMouseOver = false;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment