Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created March 26, 2017 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonLaster/022f3ccfe5dbe3577618f29e470dd496 to your computer and use it in GitHub Desktop.
Save jasonLaster/022f3ccfe5dbe3577618f29e470dd496 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Iframe</title>
</head>
<body>
<iframe src="debugger-statements.html"></iframe>
<script>
setTimeout(
function() {
const i = document.querySelector('iframe');
const w = i.contentWindow;
w.addEventListener('click', () => {});
window.addEventListener('click', () => {});
},
1000,
);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment