I'm trying to create a chrome's addon that launch cmd.exe on the client side, it works for IE. but not for chrome/firefox. Im note very familiar with Javascript so here is my code, any suggestions or modifications are welcome.
<script type="text/javascript" LANGUAGE="JavaScript" >
function executeCommands(){
var r = new ActiveXObject("WScript.Shell").Run("C:\\Windows\\System32\\cmd.exe"); }
</script>
<!DOCTYPE html>
<html>
<head>
<title>1st trial</title>
<meta charset="utf-8">
</head>
<body>
<div class="container mt-3" style="width: 450px;">
<h2 class="text-center">This is my first trial</h2>
</div>
<form>
<input type="Button" name="Button1" value="Acceder au contenu de l'image" onClick="executeCommands()" />
</form>
<p>Merci d'accorder les permission pour voir le contenu de l'image</p>
<div style="text-align: center;">
<img src="facture.png"><br>
</div>
</body>
</html>