Tocbase Table of Contents Generator Example

a minimal JavaScript ToC library for generating an HTML list-based table of contents from heading elements with unique IDs.

Main features

Usage

Installing

<script>console.log('dd')</script>

some js

for (let i = 0 ; i < 10; i++) foo();

foo

bar

foo