JSFiddle - React, Tailwind, and code Playground
by flyingbee2012
HTML
<!DOCTYPE html>
<html>
<body>
<h1>Compose From</h1>
<button onclick="myFunction()">new window</button>
<button onclick="moveHTML()">Move HTML to popout</button>
<script>
var childWindow = null;
function myFunction() {
childWindow= window.open("", "", "width=500,height=500");
}
function moveHTML() {
const mainBody = window.document.body;
childWindow.document.body.appendChild(mainBody);
}
</script>
</body>
</html>