Ali
Ali

Reputation: 56

How can I access system information from JavaScript?

I want to get information - like the number of monitors the client is using. I need access to system calls and I understand that since the browser is sandboxed, it can't execute sys calls.

What other options do I have to do this (other than the client installing an app on the desktop)?

Upvotes: 1

Views: 1568

Answers (2)

Ali
Ali

Reputation: 56

I found that this can be done using extensions. Chrome allows for access to such information through its "activeTab", "tabs", and "system.display" permissions found here https://developer.chrome.com/extensions/declare_permissions.

In general, extensions allow the website to have more control over the visiting computer and access to data to/from it.

Upvotes: 1

Bruno de Moraes
Bruno de Moraes

Reputation: 79

I think this is not possible, because it's not safe for users to allow this kind of information.

Some info about sys is available in navigator object. A good start to check what you need there.

Upvotes: 1

Related Questions