Source code
Revision control
Copy as Markdown
Other Tools
<!doctype HTML>
<head>
<meta name="responsive-embedded-sizing">
<style>
body { margin: 0; }
#box { width: 100px; height: 200px; background: blue; }
</style>
</head>
<div id="box"></div>
<script>
window.addEventListener('message', (e) => {
if (e.data && e.data.action === 'navigate') {
window.location.href = e.data.url;
}
});
</script>