Tag Archives: html

Arbitrary HTML attributes and JavaScript

This is a technique that is pretty obvious, but nonetheless useful and worth documenting:  To put it succinctly, it is possible to add custom attrbutes to HTML elements, and query them out with JavaScript DOM operations.  So you might build elements with mouseover help text like this: <a id=”years” href=”#” helpText=”Please enter your motorcycle riding [...]
Posted in Software Development | Also tagged , , | Leave a comment