Skip to content Skip to sidebar Skip to footer

JavaScript ActiveXObject

I have a queastion about ActiveXObject in javascript. I have tryed this code in Mozila FireFox 6.0.2 var AXobj = new ActiveXObject('WScript.Shell'); AXobj.SendKeys(key); But the

Solution 1:

ActiveX is a proprietary technology only supported by Microsoft...

It will only work in IE (thank goodness).

It also has some serious security concerns which is a big reason it was never adopted by other browser providers.


Solution 2:

For this you can check if it is IE then do this otherwise do that.

Like:

Function exampleFunction()
{
if ($.browser.msie) { /* IE */
                //Your code

            else {
                //Your code
            }
}

just a suggestion.


Post a Comment for "JavaScript ActiveXObject"