JSFiddle - React, Tailwind, and code Playground

HTML

<body >
<h1>Hello</h1>
<input type="text" onload="myFunction()"/> 
</body>

JavaScript

function myFunction() {
    alert("input is loaded");
}