This is possible, but disabled by default to prevent external websites gaining access to native functionality.
To enable this add your site to the trusted urls
setting under general
in the app config. URLs should follow chrome style match patterns documented here: http://developer.chrome.com/extensions/match_patterns.html