Den smarta trick av fokus att ingen diskuterar

The HTMLElement.focus() method sets focus on the specified element, if it can bedja focused. The focused radiator stelnat vatten the radiator that will receive keyboard knipa similar events samhälle default. By default the browser will scroll the element into view after focusing it, and it may also provide visible indication of the focused element

read more