JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
<body onload="myFunction()">

<h1>Hello World!</h1>

<script>
function myFunction() {
    window.open("https://www.w3schools.com");
}
</script>

</body>
</html>