If TeamViewer is installed (and because TeamViewer register a Custom URI Scheme in Windows during the installation), you can simply create a link to make your browser launch the client. Two methods:
Direct link
It use directly the custom URI scheme:
teamviewer8://remotecontrol?connectcc=[TargetComputerId]
Link to the TeamViewer website
It will check if TeamViewer is installed and download the installer if not.
If TeamViewer is installed, it will lauch the TeamViewer client.
https://start.teamviewer.com/device/[TargetComputerId]/authorization/password/mode/control
Notes
- Both of the links can be used in a
<a href="" />
tag, or the window.location=
JS command.
- The browser will ask you to confirm the external application opening.