Improving Link Display for Print (Converting Links to Footnotes) by Accessing the DOM via JavaScript

From the article

Improving Link Display for Print

Having spent many years in academia and publishing, I’m partial to footnotes/endnotes. They are a standard convention in print, so it seems natural to go in that direction. Following this line of thinking, our objectives would be to:

* collect all of the URIs referenced (hrefs and citations) in a specific container within the page (after all, we probably don’t want to grab the navigation, etc.),
* place the links (minding the duplicates) into an ordered list which can be dropped into an id-ed container of our choosing, and
* supply each reference with the corresponding footnote number as a superscript.

Luckily, all of this is well within our grasp when we access the DOM via JavaScript.

Advertisements

~ by WPA Staff on February 17, 2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: