For the html element to be oriented, it must be accessible using the Tab key. This means that you can call .focus()
by reference or input. In addition, body
elements are always customizable.
You need to make your div accessible with the Tab key. You can accomplish this by setting the tabindex
property on it. If you really do not want people to be able to insert a tab in this div, you can set tabindex to -1, which will not allow people to actually tab, but otherwise will set the element up for tabs and focus.
Source: http://help.dottoro.com/ljpkdpxb.php
dhasenan
source share