The OS/browser could give this capability to web apps via an API.
That would be a breeding ground for malware.
That would be a breeding ground for malware.