Web browsers run in low-permission, sandboxed mode to ensure that they can’t do much damage if they’re compromised, and thus, accessing OS properties is not possible. However, can I request user's permission and somehow access the data I need (in my case the OS user)? For instance, browser cannot view the webcam without a permission.
Asked
Active
Viewed 1,288 times
2
-
No in any portable way. On Windows you can use ActiveX to get it, and you can find a number of SO questions that show how to do it. – Barmar Aug 25 '16 at 16:29
-
1For instance http://stackoverflow.com/questions/9518092/javascript-how-to-get-the-name-of-the-current-user – Barmar Aug 25 '16 at 16:29
-
That's specific for Windows, but not other operating systems. – user6758020 Aug 25 '16 at 16:31
-
ActiveXObject is available only in IE – user6758020 Aug 25 '16 at 16:31