Js ActiveX control use instructions new ActiveXObject of

  • 2020-03-30 02:10:41
  • OfStack

What is an ActiveX control?

ActiveX controls are widely used on the Internet. They can increase the pleasure of browsing by providing video, animated content, etc. However, these programs can go wrong or provide you with unwanted content. In some cases, these programs can be used to collect information from your computer in ways that you do not allow, destroy data on your computer, install software on your computer without your consent, or allow others to remotely control your computer. Given these risks, you should install these programs with full trust in the publisher.

What should you do when Windows blocks the installation of ActiveX controls?

You probably should not install the ActiveX control. Installing ActiveX controls that Windows blocks is extremely risky. If Internet Explorer security Settings are at the default level and the ActiveX control does not have a valid digital signature, Windows will block the installation of the ActiveX control.

A valid digital signature confirms the publisher's identity (the company, website, or person distributing the document) and the fact that the document has not been tampered with since the signature. If the file does not have a valid digital signature, you cannot be sure whether the file really comes from its declared source or whether it has not been tampered with (for example, a virus might be inserted into the control). You should not open a file unless you trust the publisher and know that the contents will be safe when the file is opened.

Description: the following sentence means to generate a relevant Active object according to the relevant browser version

XmlHttp = newActiveXObject (aVersions [I]);

This line of JS code is to generate an XMLHttpRequest object..

Inside the brackets is the name of the ActiveX plug-in.

[" MSXML2. XMLHttp. 5.0 ", "MSXML2. XMLHttp. 4.0", "MSXML2. XMLHttp. 3.0", "MSXML2. XMLHttp", "Microsoft. XMLHttp"]. These are his ActiveX versions.

If (window.xmlhttprequest) determines whether the browser has built-in XMLHttpRequest objects


Related articles: