1

How can I do something each time html input element is showing in the html page?

<html>
    <head>
        <script>
            function myFunction() {
                alert("input is loaded");
            }
        </script>
    </head>

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

</html>

https://jsfiddle.net/amj5w7y1/2/

shiran
  • 13
  • 2

0 Answers0