Create a shortcut through the Navigator

Asked

Viewed 785 times

2

Is it possible to create a shortcut through the browser? However, if it is with Javascript, Java, or anything that makes it possible.

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

I’ve seen some people talking that can be done through Activex from Internet Explorer, but I wanted to do it through Chrome or any browser.

  • This is not possible with Javascript. It is a security feature.

  • Does it roll with java then?? Or any solution that is not necessary to install things on the user’s PC?

1 answer

2


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.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.