Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Error message when you try to view a Web page that contains IFRAME elements in Internet Explorer: �Object does not support this property or method�


View products that this article applies to.

Symptoms

When you try to view a Web page that contains IFRAME elements in Microsoft Internet Explorer, you receive the following script error message in Microsoft Internet Explorer:
Object does not support this property or method

↑ Back to the top


Cause

If a Web page contains an IFRAME element and if an src attribute points to a Scalable Vector Graphics (SVG) file (.svg), the OnLoad event of the IFRAME element occurs before the OnLoad event of the .svg file. If the Web page tries to access the .svg file when the IFRAME OnLoad event occurs, you receive the error message that is mentioned in the "Symptoms" section.

A Web page that contains an IFRAME element and an src attribute that points directly to an .svg file is known as a "full-page embed." When you use a full-page embed to host an .svg file, it is the same as if you typed the URL for the .svg file in the address bar in Internet Explorer.

Microsoft Knowledge Base articles 912945 and 912812 describe recent ActiveX Control implementation changes. An external script is now used to create a Web page for a full-page ActiveX control. Therefore, use of the ActiveX control does not require activation. However, this implementation change modifies the order of events. The OnLoad event of the IFRAME element now occurs before the OnLoad event of the .svg file.

↑ Back to the top


Workaround

To work around this issue, use one of the following methods:
Make sure that the Web page does not access the .svg file in the OnLoad event handler of the IFRAME element. Instead, make sure that the .svg file is accessed only after it is initialized in its OnLoad event.
Use an external script to embed the .svg file directly on the top-level page. For more information about how to embed objects by using external script files, visit the following Microsoft Web site:
Make the IFRAME element point to an intermediate HTML page that embeds the .svg file. To do this, you may have to use an external script file to embed the .svg file on the intermediate page. If you do this, the ActiveX control does not require activation.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: kbbug, kbactivexscript, kbwebbrowser, kbweb, kbprb, kbactivexevents, kbevent, kbtshoot, KB924926

↑ Back to the top

Article Info
Article ID : 924926
Revision : 5
Created on : 5/16/2007
Published on : 5/16/2007
Exists online : False
Views : 389