Programmatically Opening a File Dialog with JavaScript

It is possible to programmatically open a file dialog in JavaScript, but only from within a handler of a user-initiated event.