creating ActiveXobject in mozilla, invoking shell commands.

  • Thread starter Thread starter Mohd Ebrahim
  • Start date Start date
M

Mohd Ebrahim

Hi,

I'm unable to run the below script in the mozilla browser, i get error
'ActiveXobject not defined'. Is there an alternate way of fixing this in
mozilla?

kindly send me the code or resource links

kindly suggest.

***********************************************************

<html>
<head>
<script language="JavaScript" type="text/javascript">
function execute()
{
var obj = new ActiveXObject( "WScript.Shell" ) ;
obj.Run("notepad.exe") ;
}

</script>
</head>
<body>
<button onclick="execute()">open Notepad</button>
</body>
</html>
 
Hi,

I'm unable to run the below script in the mozilla browser, i get error
'ActiveXobject not defined'. Is there an alternate way of fixing this in
mozilla?

kindly send me the code or resource links

kindly suggest.

***********************************************************

<html>
 <head>
     <script language="JavaScript" type="text/javascript">  
         function execute()  
         {  
           var obj = new ActiveXObject( "WScript.Shell" ) ;
           obj.Run("notepad.exe") ;  
        }  

    </script>
 </head>
 <body>
    <button onclick="execute()">open Notepad</button>
 </body>
</html>

Firefox does not support ActiveX technology for multiple reasons.

* ActiveX is only available on Windows operating systems, and as a
result webpages that require it will not work on Linux or Mac.
* ActiveX integration with the Windows operating system has made
it a target for malicious software.

http://support.mozilla.com/en-us/kb/activex

Best regards.
 
Back
Top