Overcome limitation of activate ActiveX control in IE

Source: Internet
Author: User
Tags activex update
After installing the ActiveX update Patch, some webpages which contain some ActiveX Controls (such as media player) will require users to manually activate such controls by clicking on it or using the tab key and enter key, this is by design for security reason.

But Microsoft has a workaround as well, the key point is load ActiveX controls from external script files. by using document. write, document. createelement or innerhtml, we can bypass this kind of limitation easily.

<! -- HTML file -->
< Html >
< Body Leftmargin = 0 Topmargin = 0 Scroll = No >
< Script SRC = "Activexctl. js" > </ Script >
</ Body >
</ Html >

// Activexctl. js
Document. Write (' < Object classid = " CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6 " > ');
Document. Write (' < Param name = " URL " Value = " Example. wmv " > ');
Document. Write (' < Param name = " Autostart " Value = " -1 " > </ Object > ');

Refer to this msdn article for detail.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.