Americas

  • United States

Ensuring embedded content still works in Internet Explorer

Opinion
Apr 10, 20062 mins
Enterprise ApplicationsMicrosoft

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

with

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.