On Thu, May 31, 2007 at 12:41:42AM -0000, frankieshakes wrote:
> Hey Dav,
> Hehehe... Sorry, forgot the A tag... ;)
> What I meant was giving focus to elements that don't have a focus()
> method by default (ie: DIVs, SPANs, etc.).
Give the element a tabindex attribute:
"-1" means that it will not get focus when tabbing through the fields, but
it can receive focus via the focus() method. This does not work in Safari