Presentation Paths : Index

Use Case:

Slide shows, where the next slide can be moved to with a single keypress

(it seems like it's probably relevant for accessibility too)

Desired behaviour:

on opening a page the focus automatically moves to a particular link

HTML5 Current Status

@tabindex adjusts the tab sequence, but doesn't move the focus to the first index

HTML5 includes @autofocus for form input, but not for <a> elements

Demo

Pressing [Enter] on a typical browser will take you to the next slide.

here with Javascript help, an element has class="focus" then :

var focusElements = getElementsByClassName(document, "focus");

focusElements[0].focus();