generated-toc: Generate a Table of Contents with the DOM

More excitement from the Stuart House Of JavaScript Stuff: generated-toc: Generate a Table of Contents with the DOM. A very easy way to get a table of contents onto your documents: generate a table of contents using JavaScript.

A big thanks goes out to the organisation who funded this work, who I can’t name. Getting stuff like this out into the world is a good thing, and them allowing me to open-source it is better still. Good work.

One Response to “generated-toc: Generate a Table of Contents with the DOM”

  1. BTW - a bug in IE6 (who’d've thought it?) means that the empty div that’s a placeholder for the generated TOC produces throws a blank line.

    You can get over this by having a blank comment inside the blank div:

    <div id=”generated-toc”><!– –></div>

    bruce

Leave a Reply