Fog Creek Software
Discussion Board

Knowledge Base
Terry's Tips
Darren's Tips

Accessible Javascript Bookmarks

Is it possible to create a "Bookmark this page" hyperlink that uses accessible Javascript i.e. the script is specified in an onclick event handler rather than as the href target?

See here: if you don't understand what I'm talking about.

John Topley (
Friday, August 20, 2004

Move the javascript command into a function called by onClick. Example (not 'clean' :-):

function addTo(url) {
<a href="" onClick="addTo('');">Add to Favourites</a>

As a side note: The article seems to be from 2002 and references stats from 2002.

The latest stat from July 2004 identifies 94%+ javascript-supporting browsers. Plus a 93% Microsoft Internet Explorer 5.x+ representation. Just for reference.

Disclaimer: statistics *can* be misleading.

Have a nice weekend

Patrick Thomas

Patrick Thomas
Saturday, August 21, 2004

Thanks a lot, Patrick. It's not about whether or not Javascript is enabled, it's about accessibility.

John Topley (
Saturday, August 21, 2004

Pleasure, John. And you are right about accessibility.


Patrick Thomas

Patrick Thomas
Sunday, August 22, 2004

*  Recent Topics

*  Fog Creek Home