HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <p>Type your Name</p> <input type="text" onfocusin="myFunction(this)"> <script> function myFunction(x){ x.style.color = "red"; } </script> </body> </html>
OUTPUT
×

Save as Private