Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js focus a div

<!-- In order to do it, you need to assign a tabindex... -->
<div tabindex="0">Hello World</div>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #focus #div
ADD COMMENT
Topic
Name
1+4 =