Is not possible.
The browser is a sandbox. This is necessary because it allows you to execute arbitrary codes created by strangers on the user’s computer. It takes a lot of restraint to keep this thing in check.
So any operation that requires outside-browser interaction needs explicit user authorization. The authorization request needs to be very simple, something that he understands what’s going on. Because otherwise it becomes something common in elections where people vote without knowing why, then cause harm to themselves and not even realize what they are doing. So the browser lets the user do very few things at the request of a page.
It is possible through plugins but probably not a solution for you, one would have to install it and no one else wants to do it, especially a plugin unknown. Even plugins existing as Java also imposes restrictions.
Everyone needs to understand that the developer environment web is the browser, can not do anything outside it. If someone wants to do something outside need to make an application desktop. Yeah, there’s still this kind of application and it has a lot of advantages.
It’s the same principle I’ve already answered in that reply.
This is not possible with Javascript. It is a security feature.
– stderr
Does it roll with java then?? Or any solution that is not necessary to install things on the user’s PC?
– brunodotcom