Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<title>iframe.focus() with same-as-top intermediate frame inner</title>
</head>
<body>
<script>
document.body.onfocus = function() {
parent.postMessage("innerfocus;", "*");
}
</script>
</body>
</html>