Make Glossary
General Information
- Purpose
- This script collects all of the abbreviations (
<abbr>), acronyms (<acronym>), and definitions (<dfn>) on a page and builds a definition list (<dl>) of the terms, which is appended to a specified container (identified by itsid). The script checks for duplicate terms and also alphabetizes the terms. This script was created as a usability enhancement for webpages. - Current Version
- 1.1 (21 June 2005)
- Requirements
- This script uses functions contained in our utilities library.
Use
In your onload function, call makeGlossary(), setting targetID to the id of your target container.
Change Log
- 1.0 (7 June 2005)
- Initial script
- 1.1 (21 June 2005)
- Added support for jsUtilities 2.1.
Optimized Releases
These releases have been optimized for production by removing unnecessary white space, carriage returns, etc.
- Compressed 1.1 [990 byte .zip archive]
- Compressed 1.0 [991 byte .zip archive]
Development Version
If you are interested in helping to further develop this script, you can download the uncompressed JavaScript source file.