javascript - ActiveXObject("WScript.Shell"); is undefined in Firefox? -
here trying call system calculator using activexobject. in ie working fine me in firefox not coming. getting undefined error. how solve problem in firefox?
try{ if(gbrowser == 'ie'){ var shell = new activexobject("wscript.shell"); shell.run("calc"); } else{ var shell = new activexobject("wscript.shell"); shell.run("calc",1,true); } } catch(e){ if(gbrowser == 'ie'){ alert(e.description); } else{ alert(e.description); } }
you can't.activex proprietary technology supported microsoft , ie supports it, firefox doesn't support activexobject
, , can't access shell object either.
can create com components in ff, requires plugin , definite effort.probably not solution in case.
firefox not support activex technology multiple reasons.
- activex available on windows operating systems, , result webpages require not work on linux or mac.
- activex integration windows operating system has made target malicious software.
Comments
Post a Comment