Skip to content

Instantly share code, notes, and snippets.

@klapuch
Created May 3, 2017 14:28
Show Gist options
  • Save klapuch/bb3d5fd9d4d5ad01c77d230af313a2b7 to your computer and use it in GitHub Desktop.
Save klapuch/bb3d5fd9d4d5ad01c77d230af313a2b7 to your computer and use it in GitHub Desktop.
focus();
addEventListener('blur', function() {
if(document.activeElement === document.getElementById('rolex-corner-v3')) {
alert("I have clicked on iframe");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment