Simon Willison’s Weblog

Subscribe

Tuesday, 25th March 2003

getElementsByClassName()

More handy javascript from Andy: document.getElementsByClassName.

Freshly Blogrolled

Recent additions to the blogroll:

Date-centric vs Entry-centric

When I started this blog, I made the decision to use days rather than entries as the principle navigation unit of the site. Each day’s entries are grouped under a single heading for that day, archives are arranged by day (with permalinks linking to anchors on those pages) and individual entries come without titles, to emphasise the fact that they are part of a larger whole.

[... 602 words]

getElementsBySelector()

Inspired by Andy, I decided to have a crack at something I’ve been thinking about trying for a long time. document.getElementsBySelector is a javascript function which takes a standard CSS style selector and returns an array of elements objects from the document that match that selector. For example:

[... 172 words]

2003 » March

MTWTFSS
     12
3456789
10111213141516
17181920212223
24252627282930
31