Now, there is a completely cross-browser and cross-platform automatic
Table of Contents
JavaScript. View the script at THIS
LINK. Just save it from NotePad/SimpleText as
myNtoc2.js and put a script link to it at the top of ANY web page that uses h1,
h2, h3, ...
and that script along with just a couple of other lines of code in the html at
the top of
any web page will build an automatic Table of Contents in a separate window that
has
jump links, controlling the display in the main window (jumping to the named
anchor - the
part of the large web page the entry in the Table of Contents refers to).
(The needed additions to
the top of any web page where you want to use it can be seen when you View the
Source of
the demo page below -- just add the top ten lines to any web page where you want an
Automatic
Table of Contents with Jump Links.)
Here is a demo:
If you find you have some trouble with that code (ABOVE) working on a particular
page (that is, across all different browsers), THEN try THIS VERSION.
(I had the trouble on one page myself, thus I made this second version.)
CLICK THIS LINK TO SEE DEMO,
WITH ANY MODERN BROWSER ON ANY PLATFORM
(This example uses the old version --
the version addressed in the first paragraph, above.)