0

i want to rum command using Windows Command Prompt but it require ActiveX object... Mozilla FireFox4 and Google Chrome are giving error

Uncaught ReferenceError: ActiveXObject is not defined

2 Answers 2

2

ActiveXObject is only supported in IE. This is not a standard object and specific to IE and hence Windows. Other browsers runs on multiple platforms and it doesn't make sense for them to implement this non standard object.

Sign up to request clarification or add additional context in comments.

2 Comments

how can i open notepad using javascript? without ActiveXObject
If you are talking about "javascript in browser", then you cann't do that and there is no reason you should be doing that. Think about this, if you can open notepad from JS code then any web site can run "format your hard drive" program as soon as you open the web site.
1

Only Internet Explorer allows for running ActiveX objects.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.