JavaScript

Making elements keyboard focusable and clickable

Either use natively keyboard accessible elements to trigger JavaScript interactions or make what you use instead mimic the appropriate native element as closely as possible.

Posted on February 12, 2013

Safer event handling with jQuery namespaced events

By namespacing events in your jQuery functions, you reduce the risk of interfering with other scripts when adding or removing handlers.

Posted on May 24, 2012

JavaScript-created markup also needs to be semantic and accessible

Browsers, assistive technology and end users have to deal with non-semantic markup even if it is inserted by JavaScript functions.

Posted on November 10, 2011

Get element text, including alt text for images, with JavaScript

A JavaScript function that returns the text content of an element and its descendants, including alternative text for images and image map areas.

Posted on May 16, 2011

Validate URL syntax with JavaScript

How to use JavaScript to verify that the path, query and fragment parts of a URL use valid syntax according to RFC 3986.

Posted on May 3, 2011

How to find the center of an area element with JavaScript

A simple JavaScript function that takes an area element’s shape and coords attributes and returns an array holding the horizontal and vertical center coordinates.

Posted on April 18, 2011

Java is not JavaScript

Java and JavaScript are not the same thing, and they are not related.

Posted on September 23, 2009

Find nasty JavaScript with the Obtrusive JavaScript Checker

The Obtrusive JavaScript Checker is a Greasemonkey user script and Firefox extension that will examine the web page you are on and highlight obtrusively implemented JavaScript.

Posted on November 10, 2008

DOMAssistant 2.6 released

The lightweight JavaScript library DOMAssistant has been updated to version 2.6, with really fast CSS selectors, a plugin model, a development team, and more.

Posted on February 26, 2008

Beware of id and name attribute mixups when using getElementById in Internet Explorer

When using getElementById to get a reference to an element via the id attribute, IE may return an element whose name attribute contains the value you’re matching.

Posted on February 14, 2008

JavaScript interaction must be input device independent

Make your JavaScript device-independent and accessible to all by assigning user interaction event handlers such as onclick to links instead of non-keyboard focusable elements.

Posted on August 21, 2007

Unobtrusive and keyboard accessible connected select boxes

One nice approach to creating connected select boxes that are keyboard accessible and do not require JavaScript.

Posted on April 18, 2007