Automatic Link File-Size Generation | JavaScriptSource

Automatic Link File-Size Generation

Natalie Downe Sep 12, 2008


This script displays the size and type of a document next to the link targeting it. This distinguishes the 'attachment' link from a normal Web link, and provides the user with helpful information. Easy to implement. Includes the necessary jQuery script.


Additional information can be found on the Web site.

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: addSizes.js


Paste this code into the HEAD section of your HTML document.


Paste this code into the BODY section of your HTML document

Leave a Response