Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE HTML>
<button>Launch</button>
<script>
let button = document.querySelector("button");
button.addEventListener("click", function() {
let newWindow = window.open("", "", "newWindow");
newWindow.document.write(`<!DOCTYPE HTML>
<button>click me!</button>
<script>
let button = document.querySelector("button");
button.addEventListener("click", function(e) {
document.documentElement.requestFullscreen();
setTimeout(() => {
while(true) {
// slowdown event loop
};
}, 1);
});
<\/script>`);
});
</script>