JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<body>
<p>Click the button to open a new browser window.
<br>
<br>Opens with: width=640,height=400,left=300,top=300
</p>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
window.open("https://www.w3schools.com", "Test", "width=640,height=400,left=300,top=300");
}
</script>
</body>
</html>