playwright/test/assets/dynamic-oopif.html

11 lines
345 B
HTML
Raw Normal View History

2019-11-19 05:18:28 +03:00
<script>
window.addEventListener('DOMContentLoaded', () => {
const iframe = document.createElement('iframe');
const url = new URL(location.href);
url.hostname = url.hostname === 'localhost' ? '127.0.0.1' : 'localhost';
url.pathname = '/grid.html';
iframe.src = url.toString();
document.body.appendChild(iframe);
}, false);
</script>