In this example, when you click on the "Change text" button, the text contained within the P ID=oID_1but not the P tags around itis replaced by the text "WOW! It changed." To reset, we simply use the innerText property again.
Here's the text that will change.
[right-click anywhere in the window to view the source code]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.