If you want to make a non-focusable element focusable, you must add a tabindex attribute to it: <div id="focusme" tabindex="1"></div>