Skip to content

Instantly share code, notes, and snippets.

@rajeshpv
Last active December 23, 2023 10:13
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 rajeshpv/18c9046727781d3b5b13a56dc624487a to your computer and use it in GitHub Desktop.
Save rajeshpv/18c9046727781d3b5b13a56dc624487a to your computer and use it in GitHub Desktop.
test.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<iframe id="dhamma" src="https://www.dhamma.org/en-US/schedules/schpubbananda" />
<script>
function log(msg){ console.log(msg); }
if (window.frames && window.frames.dhamma) {
let frWindow = window.frames.dhamma;
let doc = window.frames.dhamma.document;
} else log(`not able to get ref`);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment