Dynamically Construct a Table of Contents
This example searches the document for heading elements, and constructs
a Table of Contents consisting of links and named anchors.
Heading 1
Sub-heading 1.1
Sub-heading 1.1.1
Sub-heading 1.1.2
Sub-heading 1.2
Heading 2
Sub-heading 2.1
Sub-heading 2.2
Sub-heading 2.2.1
Sub-heading 2.2.2
Sub-heading 2.2.2.1
Heading 3
Sub-heading 3.1
Sub-heading 3.2
[Right-click and choose View Source from the shortcut menu.]
© 2007 Microsoft Corporation. All rights reserved. Terms of use.