Patent ID: 8127229

Claim:
A device for processing a document described in a markup language, comprising: a display screen; a focus movement operator; a memory; and a processor configured to: move a focus sequentially to a plurality of focus items on the display screen using the focus movement operator; and control the movement of the focus in response to an operation of said focus movement operator, wherein to control the movement of the focus, the processor is further configured to: when the display screen currently displays a plurality of frames, including a first frame and a second frame, determine if focus items exist in the first frame in a first direction in response to the operation of the focus movement operator in the first direction, when no focus items are determined to exist in the first frame in the first direction, move the focus from the first frame into the second frame in a second direction, store, in the memory, information on a last focused focus item in the first frame before the movement, and move the focus from the second frame to the last focused focus item in the first frame via the focus movement operator.