Ensuring embedded content still works in Internet Explorer

I understand that Internet Explorer is being changed to disable the functionality of the Object, Embed and Applet tags in HTML documents. How can I make sure our embedded content still works the way we want it?

I understand that Internet Explorer is being changed to disable the functionality of the object, embed and applet tags in HTML documents. How can I make sure our embedded content still works the way we want it?

You can replace the embedded content lines in your HTML files with JavaScript that calls code outside the HTML page to write the tags that are being disabled in HTML. To replace one instance of embedded content you can create an external JavaScript file that uses document.write commands to create the same lines that you're replacing in the HTML file with the call to the external script. For example, you would replace

<object classid="clsid:deadbeef..."><param name="src" value="mystuff.xyz" /></object>

with

<script type="text/javascript" src="fixit.js" language="JavaScript"></script>

and then you would create a JavaScript file named "fixit.js" containing document.write statements that reproduce the embedded content code previously contained in the HTML file. For large numbers of pages with embedded content, you can create external JavaScript files that use parameters passed in when you call the script to generate the HTML code. Then you can replace the disallowed sections of the HTML files with the JavaScript calls using the parameters to identify specific content.

Examples and instructions for this workaround are here. More information is also available from Microsoft.

Insider Shootout: Best security tools for small business
Join the discussion
Be the first to comment on this article. Our Commenting Policies