-
The HTML Standard has added a
focusVisible
option for thefocus()
method:button.focus({ focusVisible: true })
This option enables websites to forcibly show the browser’s focus indicator (focus ring ✴️) when programmatically focusing an element: webplatform.news/#1660387734000.