When a Web page uses the OBJECT tag to invoke an HTML document, the document is not loaded (279422)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 5.5

This article was previously published under Q279422

SYMPTOMS

When a Web page uses the <OBJECT> tag to invoke an HTML document, the document is not loaded.

CAUSE

This problem occurs if you are using Internet Explorer 5.5 Service Pack 1 (SP1) and if Microsoft Office 2000 is not installed.

RESOLUTION

To work around this problem, add the type attribute of the <OBJECT> tag to invoke the HTML page within an existing page. For more information, see the workaround code sample in the "More Information" section.

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Create a file named Test.htm, and paste the following code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    <OBJECT ID="global1" HEIGHT=200 WIDTH=400   DATA="object.htm"></OBJECT>
    </body>
    </html>
    					
  2. Create a file named Object.htm, and paste the following code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <META http-equiv=Content-Type content="text/html; charset=windows-1252">
    
    <TITLE></TITLE>
    </HEAD>
    <BODY>
    
    <H1>TEST</H1>
    
    </BODY>
    </HTML>
    					
  3. Save Object.htm to the same folder as Test.htm.

Workaround

Add the type attribute to the OBJECT element as follows:
<OBJECT ID="global1" HEIGHT=200 WIDTH=400  type = "Text/html" DATA="object.htm"></OBJECT>
				
This type attribute specifies the content type for the data that is specified. This attribute is optional but recommended when data is specified because it allows the user agent to avoid loading information for unsupported content types.

REFERENCES

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:

Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbhtml kbnofix kbprb KB279422