Patent ID: 8843849

Claim:
A method for displaying a document by a device, the method comprising: obtaining the document, the document comprising a plurality of elements and an event handling script; displaying, on a device display, at least a portion of the document by a browser environment operating on the device, the browser environment being configured to move focus in the document from one focusable element to a next focusable element of the plurality of elements in a default order in response to a first navigation instruction; establishing a focus on a first focusable element of the plurality of elements; receiving the first navigation instruction; and in response to the first navigation instruction, determining whether the event handling script is associated with the first focusable element; and when the event handling script is associated with the first focusable element, executing the event handling script to move the focus to a further focusable element of the plurality of elements other than the next focusable element immediately following the first focusable element in accordance with the default order, at least one of the first focusable element and the further focusable element comprising an element other than an element that by default is capable of gaining focus in response to the first navigation instruction in the browser environment, the at least one of the first focusable element and the further focusable element being made focusable by an explicit setting of an associated attribute for that element in the document, wherein elements that by default are capable of gaining focus in response to the first navigation instruction in the browser environment include text entry elements, selection elements, button elements, hyperlink elements, anchor elements, and interactive image elements.