INFO: Using Alternative HTML Within the OBJECT Tag

Last reviewed: March 17, 1998
Article 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><BR>
   <A
HREF="http://support.microsoft.com/support/kb/articles/q169/4/38.asp"> Click here for troubleshooting information</A>
   </OBJECT>

REFERENCES

For further information on HTML, please refer to the following Web site:

   http://www.microsoft.com/msdn/sdk/inetsdk/

For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q169438
   TITLE     : PRB: ActiveX Control Does Not Display Correctly on Web Page

(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Mark Davis, Microsoft Corporation
Keywords          : AXSDKCompDownload AXSDKSripting
Technology        : kbInetDev
Version           : WINDOWS:3.0,3.01,3.02,4.0,4.01
Platform          : WINDOWS
Issue type        : kbinfo


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 17, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.