Setting focus to visible div elements

Setting focus to visible div elements

Post by Mark Henr » Tue, 21 Jun 2005 22:28:43


I display div elements dymamically as the user interacts with a page.
Once an element is made visible I'd like to shift focus to that element
(usually a single text element or image) so that a screen reader can
read the content.

Any suggestions?

tia,

mark h
--
Mark Henry Enterprises, Inc.
375 Schad CT SW
Concord, NC 28025 USA
704.721.6685 office
704.701.4757 mobile
XXXX@XXXXX.COM
www.MARKHENRYENTERPRISES.com
 
 
 

Setting focus to visible div elements

Post by Frank Nosp » Fri, 24 Jun 2005 23:48:02


Javascript.
document.getElementById(ELEMENTNAME).focus();
where ELEMENTNAME = the relevant div id.
Your dynamic divs all have unique ids, right?

-F.