Create a shortcut through the Browser

2

Is it possible to create a shortcut through the browser? Be that as, if it's with JavaScript, Java, or anything that makes it possible.

I need to create a shortcut on the user's desktop through the browser, in the same way that Chrome does when it opens that "Create application shortcut" menu.

I've already seen some people talking about what to do with ActiveX from Internet Explorer, but I wanted to do this through Chrome or any browser.

    
asked by anonymous 22.01.2015 / 13:41

1 answer

2

Not possible.

The browser is a sandbox . This is necessary because it allows you to execute arbitrary codes created by unknown users on the user's computer. You need to have a lot of restraint so you do not get out of control.

So any operation that requires off-browser interaction requires explicit user authorization. The authorization request must be very simple, something that he understands what is happening. Because otherwise it becomes something common in elections where people vote without knowing why, there they 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 it is probably not a solution for you, the person would have to install it and no one else wants to do this, especially an unknown plugin. Even plugins as Java also imposes constraints.

Everyone needs to understand that the web developer environment is the browser, can not do anything outside it. If someone wants to do something out they need to make a desktop application. It is, there is still this type of application and it has a number of advantages.

It's the same principle I've already answered in that answer .

    
22.01.2015 / 13:51