Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<html>
<head>
<title>iframe.focus() with different-site intermediate frame inner</title>
</head>
<body>
<script>
document.body.onfocus = function() {
parent.postMessage("innerfocus;", "*");
}
</script>
</body>
</html>