The possibility to interact with the desktop in HTML5 is currently still in its early stage. The specification that should allow that are still in their draft state. Nevertheless, when developing an extension for the Chrome Web Browser we can already do it. The following video clip explains how to do it.
You can find the source code as well as the slides that explain this topic available for free download as part of the Google Chrome Extensions Development course at www.abelski.com.