INFO: Using Alternative HTML Within the OBJECT Tag (182486)



The information in this article applies to:

  • Microsoft Internet Explorer (Programming) 3.0
  • Microsoft Internet Explorer (Programming) 3.01
  • Microsoft Internet Explorer (Programming) 3.02
  • Microsoft Internet Explorer (Programming) 4.0
  • Microsoft Internet Explorer (Programming) 4.01

This article was previously published under Q182486

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="<WWLINK 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"></WWLINK>
Click here for troubleshooting information</A>

   </OBJECT>
				

REFERENCES

For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites: (c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Mark Davis, Microsoft Corporation.


Modification Type:MajorLast Reviewed:5/11/2006
Keywords:kbDHTML kbFAQ kbinfo KB182486