Source Code:
Result:
Enter your name:
When you type in the field above, the div element below will display the key number.
Edit the code above and click "Submit Code" to see the result.
W3Schools.com
- Try it yourself