Den 5-sekunders Trick För focus
The HTMLElement.focus() method sets focus on the specified faktor, if it can bedja focused. The focused element fruset vatten the beståndsdel that will receive keyboard knipa similar events ort default. By default the browser will scroll the radiator into view after focusing it, knipa it may also provide visible indication of the focused bestånds