Example 2:

Updating a log by deleting the old line and adding one new line.

This is the start of a log

Code

function ARIA_Overwrite_Log() {
document.getElementById('livelog2').innerHTML = Math.random( ) +
": another new line has been written over writing the current line.";
}
Updating a log by deleting the old line and adding one new line.

This is the start of a log

Works With

role=log

Browser

Screen Reader

Results

IE 9

JAWS 12

No

FF 5

JAWS 12

Yes.

Standards:

1.3.1 Info and Relationships: Information, structure, and relationships conveyed through presentation can be programmatically determined or are available in text. (Level A)