I'd like to simulate a keypress into an INPUT object.
I can't just set the element value because of the way the field is processed.
Looks like the solution has to do with dispatchEvent
and KeyboardEvent
- but there are so many variations and most deprecated.
What's the current modern way of sending printable characters to an INPUT field.
document.getElementById().value
? – Antirrhinum