HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <input type="text" value="focus me" onfocus="myFunction()"> <script> function myFunction(){ alert("You focused the input element, Do refresh or F5"); } </script> </body> </html>
OUTPUT
×

Save as Private