innerHTML Sample

In this example, when you mouseover the italic text, the text changes using the innerHTML property. The mouseover event is contained in the P which encapsulates the italicized text.

Mouseover this text to change it.




[Right-click and choose View Source from the shortcut menu.]

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