How to get windows environment variables with javascript [closed]

-4

How could you get certain windows environment variables from the client side, such as the login user with javascript (without any framwork)?

other than with activexobject

    
asked by Adrian.Aguirre 04.05.2018 в 12:26
source

1 answer

6

Javascript, or better, the browser, does not have permissions to access the environment / system variables.

Imagine what could happen if any web page could access your variables, any thief could get sensitive information on your computer.

Although you could also use node-webkit , a special "browser", but probably none of your visitors will use it.

In a normal browser, there is no way to get environment variables only with Javascript.

    
answered by 04.05.2018 / 13:02
source