module pkg::alloy::window::browsersource
The window in a browser: a canvas, and the page's events, through the
JavaScript beside this file (browser.web.js), which calls the program
back for each one. run returns at once, leaving the program running
in the browser's event loop. A canvas with the id alloy is used when
the page has one, sized by its style; otherwise one is added to the
page at the configured size. Closing the window stops its events.
Input methods compose in a hidden textarea kept at the caret, which
has the keyboard while the program asks for text input.
Programs using tasks run in a worker, which has no page: their windows
do not open yet.