Given a simple text field (<input id=theField>), how do I allow the user to click to get a cursor and do Control/Command-A and Control/Command-C (to select and copy the contents), but disallow any actual input into the field?
Please don't assume I know much about JavaScript event handling. I think my solution will involve onkeydown="if (some condition) return false" but that's about the extent of my understanding. I tried to Google the answer but I didn't understand a lot of it, and couldn't craft a solution from what I found.