digital media access group

...excellent accessibility research and consultancy

home > resources > accessible design articles > bookmarklets: an aid to checking the accessibility of your website  

Bookmarklets: An aid to checking the accessibility of your website

By Nicola McIlroy, published 1st April 2005.


Manually checking your website against the W3C's Web Content Accessibility Guidelines [1] is an important way to check the accessibility of your website. However, many of the WCAG checkpoints require the underlying HTML code within a web page to be inspected and manually edited, which can be a time-consuming process when a site contains a large number of pages or poorly laid out code. However, a range of tools are available for download from the World Wide Web, which facilitate checking the accessibility of your site, including accessibility 'Bookmarklets'.


The term 'Bookmarklets' was first coined by Steve Kangas, who designed a website dedicated to them at http://www.bookmarklets.com [2]. Bookmarklets (also known as Favelets) are simple JavaScript programs which can be stored as 'Favourites' in Internet Explorer or 'Bookmarks' in Netscape/Mozilla. When you 'follow' a bookmarklet, it performs a specific task on the web page your browser is currently viewing. Such a task might be changing some aspect of the display of the page, or automatically sending the page's URL to an HTML validation tool.


As an example, the following code can be saved as a bookmark in Internet Explorer, and when selected it will generate a copy of the web page being viewed with the background colour changed to green:

<a HREF = "JavaScript: void (document.bgcolour = #00FF00')">Green Background</a>

Right clicking on this link or dragging it into your favourites in Internet Explorer will enable you to select the favourite or 'bookmarklet' from your browser which will run the script and produce a new page with the background colour changed to green.


In order for bookmarklets to function, your browser will have to be IE5 or above, NN6 or above, or Opera 5 or above. Bookmarklets are operating system-independent; however they do require JavaScript to be enabled [3].


The potential for bookmarklets to support accessibility evaluation of web sites is clear, and there is now a wide range of bookmarklets designed to facilitate checking your web site for specific accessibility issues. In some cases, these have been incorporated into 'toolbars' providing a range of accessibility options. A few of which are described below:


The AIS accessibility toolbar [4] is an extension for Internet Explorer which incorporates a range of accessibility options and similar extensions exist for Mozilla and Mozilla Firefox browsers; for example, the Web Developer's toolbar [5] and Accessibar [6]. Accessibar is also useful as an assistive technology as it redisplays the page in for example larger text or with wider spaces between lines and offers text to speech integration, enabling the content of a web page and features of the browser interface, to be read out loud to a user.


Accessibility bookmarklets can be labour-saving tools, helping you to inspect, extract and examine the content of a web page without having to wade through and edit the underlying HTML code. However, bookmarklets, as with the majority of automated accessibility checking tools, must be utilised in conjunction with manual checking and a good knowledge of proper structured markup, as specified by the WCAG, to ensure that a website is accessible to as many users as possible, regardless of browsing environment or experience.


Further Bookmarklet Resources

For more information on bookmarklets, check out these sites:


References

  1. W3C Web Content Accessibility Guidelines version 1.0 - http://www.w3.org/TR/WCAG10/
  2. Steve Kangas Bookmarklets web site - http://www.bookmarklets.com/
  3. Ross Shannon's Bookmarklets web site - http://www.yourhtmlsource.com/accessibility/bookmarklets.html
  4. The AIS Accessibility toolbar – www.nils.org.au/ais/web/resources/toolbar/
  5. The Web Developers toolbar - http://www.chrispederick.com/
  6. Accessibar - http://accessibar.mozdev.org/