diff options
Diffstat (limited to 'help3xsl/paginathing.js')
-rw-r--r-- | help3xsl/paginathing.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/help3xsl/paginathing.js b/help3xsl/paginathing.js index cd52b3637f..4b12618110 100644 --- a/help3xsl/paginathing.js +++ b/help3xsl/paginathing.js @@ -69,8 +69,10 @@ var Paginator = function(element) { parent = existingContainer.parentNode; parent.removeChild(existingContainer); } + const searchInput = document.getElementById("search-bar"); var container = document.createElement('nav'); container.setAttribute('class', options.containerClass); + container.setAttribute('tabindex', '0'); var ul = document.createElement('ul'); ul.setAttribute('class', options.ulClass); @@ -227,6 +229,7 @@ var Paginator = function(element) { limitPagination = pagLimit(); } show(page); + searchInput.focus(); }); }()); } |