Internet Explorer: IE ActiveX Update Workaround

Many of you will now be familiar with the update made to internet explorer, whereby you need to ‘click to activate’ any activex controls on a page.

To get around this, I have created a script that you can include in your page (via an external JS file) that basically rewrites all object tags on the page. As the creation of object elements has been done by an external file, IE will allow interaction without activation.

All you need to do is add the script reference just before the end of your body tag.

// test.html




http://main_flash.swf





// ieactivexfix.js

if (document.all && document.getElementsByTagName) for (var i=0, els=document.getElementsByTagName("object"); i<els.length; els[i].outerHTML = els[i++].outerHTML);