Let's say I'm building an app with buttons. These buttons don't go anywhere and don't do anything; they're just used by the JavaScript to decide what to do next. (Assume that these buttons are added by the JS; if the user has JS disabled, something else entirely is presented.)

These links don't go anywhere, so I don't really need the href attribute. But I really want users to be able to tab to the buttons, if they'd like. I just read an article that suggests the following compromise:

HTML Code:
<a href="javascript:void(0)"></a>
This is supposed to be better than setting href to "#" or some other placeholder value. I guess it's mixing behavior and content, but that doesn't bother me so much. What I'm really curious about is the accessibility. I assume an ideal solution would be for browsers to support tabindex="-1", but how is this "void" in the interim?