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”

Article translations Article translations
Article ID: 924926 - View products that this article applies to.
Expand all | Collapse all

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

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.

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:
    http://msdn2.microsoft.com/en-us/library/ms537508.aspx
  • 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.

STATUS

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

Properties

Article ID: 924926 - Last Review: May 16, 2007 - Revision: 1.5
APPLIES TO
  • Microsoft Internet Explorer 6.0, when used with:
    • Microsoft Windows Server 2003 Service Pack 1
    • Microsoft Windows Server 2003, Web Edition
    • Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
    • Microsoft Windows Server 2003, Standard Edition (32-bit x86)
    • Microsoft Windows XP Service Pack 2
Keywords: 
kbactivexscript kbactivexevents kbevent kbwebbrowser kbweb kbbug kbtshoot kbprb KB924926

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com