|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Annoying message when using ActiveX Objects
I've created a JS script in an HTML page that opens a local application (for example windows Explorer). For this I use an ActiveX Object (var WshShell = new ActiveXObject("wscript.shell")
. I kno that the browser setting need to be adapted in order to use the Object. But the annoying problem is that windows still pops-up a message if I want to allow to the interaction.Is there a way to terminate this message? Kind regards, Erik P.S. this is the function I use: --------------------------------- This is the function: --------------------------------- <script type="text/javascript"> function startProg(myPath) { var WshShell = new ActiveXObject("wscript.shell"); WshShell.Run("\""+myPath); } </script> --------------------------------- This is the link that uses the function: --------------------------------- <a href="#" onClick="startProg('C:\\Program Files\\Internet Explorer\\iexplore.exe')">erik</a> --------------------------------- |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Annoying message when using ActiveX Objects |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|