This example demonstrates the use of the insertBefore method. By clicking on the sentence below, insertBefore is used to insert a new item into the list before "Yellow".
Click HERE to add an item to the following list.
[Right-click and choose View Source from the shortcut menu.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.