Skip to content Skip to sidebar Skip to footer

Manually Setting Focus To A Element In Tvjs

I can't find any method in the Documentation to manually set the focus to an element. It is supposed to support the DOM Element class, but when i do var elem = ele.ownerDocument.ge

Solution 1:

Apple's TVJS Framework doesn't provide any method in his classes to manually focus an element.

Neither in the standard Document Object Module classes it incorporates have any kind of method to directly access the DOM and focus an element.

The closes thing available is the autoHighlight attribute which allows to focus on render some specific elements in certain positions.

Solution 2:

In pure js you can document.getElementById("start").autofocus; : On page load input is autofocus

Solution 3:

Use autoHighlight for this purpose.

autoHightlight="true"

Both the containing element and one child element have to be set to true.

Post a Comment for "Manually Setting Focus To A Element In Tvjs"