Reputation: 289
I've read the other SO questions about launching an application using JavaScript, and from what I've read it seems impossible unless one is using an outdated version of IE.
However, I notice that whenever I enter a Zoom meeting, Zoom prompts the user, "Do you want to open Zoom?" And if one clicks "yes", then the Zoom application opens. This works on all browsers, at least to my understanding.
How is this done? Is it done by using something other than JavaScript?
Upvotes: 3
Views: 1562
Reputation: 26615
That actually has nothing to do with JavaScript.
It is using a custom protocol registered on the machine at the time the program is installed.
Basically, they register some custom protocol (like zoom://
) with the OS itself at the time of installing the program. Then, all you have to do to launch it is navigate to a URL like zoom://meeting1234
. The OS will see this custom protocol and launch the appropriately registered program.
Here is some documentation:
Upvotes: 1