Literal Content Sample

The element behavior used in this sample (LCSample.htc) opens a message box displaying the innerText and innerHTML properties of the custom element. The literalContent attribute is false, which is the default value, so this behavior does not treat the contents of the custom element as Literal Content. The element behavior runs the main function when the ondocumentready fires in the primary document.

The custom element content appears after this sentence.

This text is inside the custom element.

© 2007 Microsoft Corporation. All rights reserved. Terms of use.