Text input to web page without text fields

add an event listener to the document
(run the example, and click on it to activate it, otherwise its document won't have the focus, this is intended to work on a standalone page rather than embedded frame)