Source Code:
Result:
Enter your name, then move the cursor/tab outside the field:
Enter your name:
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself