Reputation: 27
I am a beginner programmer and I want to allow someone using my program to be able to type a key on the keyboard and have it be typed out on the screen, but I want it to be normal typing that you can copy and paste and do everything a normal typing function can do. I haven't tried anything because I couldn't think of any ideas for what to do
Upvotes: 1
Views: 1703
Reputation: 644
For this you simply do a textarea tag like so. More info about this can be found on https://www.w3schools.com/tags/tag_textarea.asp and https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
<textarea rows="4" cols="50">
Type here
</textarea>
Upvotes: 1