INFO: Using Alternative HTML Within the OBJECT Tag

ID: Q182486


The information in this article applies to:
  • Microsoft Internet Explorer (Programming) versions 3.0, 3.01, 3.02, 4.0, 4.01


SUMMARY

Alternative HTML can be specified within an HTML <OBJECT> tag pair. This HTML will be parsed and rendered in the event that the object is not inserted. This is useful for providing additional information and improving the user experience in the event of a code download failure.


MORE INFORMATION

The HTML <OBJECT> tag is used to insert an object, such as an ActiveX control, into a Web page. In the event that the object cannot be installed, Internet Explorer displays a small icon containing a red cross to indicate the failure. Aside from authoring, network, or licensing issues preventing the object from being inserted, the user may have chosen not to download active content. Alternatively, some browsers do not support the <OBJECT> tag. You can place ordinary HTML between the <OBJECT> and </OBJECT> tags to be displayed in the event that the object is not installed.

Here is an example of using alternative HTML inside an <OBJECT> tag pair:


   <OBJECT ID="Control1"

    CLASSID="CLSID:nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn">

   <B>There was a problem inserting this control</B>
   <A HREF="<LINK TYPE="GENERIC" VALUE="http://support.microsoft.com/support/kb/articles/q169/4/38.asp">">http://support.microsoft.com/support/kb/articles/q169/4/38.asp"></LINK>
Click here for troubleshooting information</A>

   </OBJECT> 


REFERENCES

For more information, please see the MSDN Web Workshop:

http://msdn.microsoft.com/workshop/default.asp


For additional information, please see the following article in the Microsoft Knowledge Base:
Q169438 PRB: ActiveX Control Does Not Display Correctly on Web Page
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Mark Davis, Microsoft Corporation.

Additional query words:

Keywords : kbDHTML kbDSupport AXSDKCompDownload AXSDKScripting kbIEFAQ
Version : WINDOWS:3.0,3.01,3.02,4.0,4.01
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: January 27, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.