how to check if Computer\HKEY_CURRENT_USER\Software\Classes\tg
exists or not by Javascript (Supported by All Browsers).
Asked
Active
Viewed 378 times
1

Ivan Nevostruev
- 28,143
- 8
- 66
- 82

BottledTurtles
- 23
- 5
-
Do you want to check it from web page? Or from program running locally on windows machine? – Ivan Nevostruev Jun 09 '16 at 22:55
-
@IvanNevostruev from web page By javascript. – BottledTurtles Jun 09 '16 at 23:03
-
2I don't think you can access any key in registry from web page javascript. Because it's security restriction. Registry can contain some sensitive information like login credentials. – Ivan Nevostruev Jun 09 '16 at 23:03
-
@IvanNevostruev i found somethings but all of them are written with ActiveXObject() which are not supported by Chrome... – BottledTurtles Jun 09 '16 at 23:05
-
Right. ActiveXObject is windows specific feature is only supported in Internet Explorer. Also it's not longer supported in latest Microsoft browser - Edge. Bottom line: it's possible in some old browsers, but will not be supported at all in future. – Ivan Nevostruev Jun 09 '16 at 23:10
-
@IvanNevostruev Is there a way to check if `tg://` protocol exists? it's related to Telegram app. – BottledTurtles Jun 09 '16 at 23:13
-
Looks like there is no universal way: http://stackoverflow.com/q/2872090/93988 – Ivan Nevostruev Jun 09 '16 at 23:16
-
@IvanNevostruev anyways thanks for your help. – BottledTurtles Jun 09 '16 at 23:18