blob: 26c45df1881aa90c67a3a6ddf7cad9f64952f1e1 [file] [log] [blame]
<body>
<iframe width=300px height=300px></iframe>
<script>
var url = window.location.href;
url = url.replace(/a\.com/, "b.com");
url = url.replace(/oopif\.html/, "oopif_frame.html");
document.querySelector('iframe').setAttribute('src', url);
</script>
</body>