creating ActiveXobject in mozilla, invoking shell commands.

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>
 
C

Cubaman

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top