In this example, when you click on the "Change text" button, the text contained within the P ID=oID_1 and the P tags around it are replaced by the text "WOW! It changed." To reset, we need to re-insert the P tags; this is done with the innerHTML property.

Here's the text that will change.





[right-click anywhere in the window to view the source code]



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

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