automatic focus of search bar

This commit is contained in:
xfnw 2021-10-27 19:03:53 -04:00
parent f10cd8d3fe
commit 9acb68d457
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ error_reporting(E_ALL);
<div class='box search-container'>
<form action="./">
<input type="text" placeholder="Search.." name="q" value="<?php if (isset($_GET['q'])) {echo htmlspecialchars($_GET['q']); } ?>">
<input type="text" placeholder="Search.." name="q" value="<?php if (isset($_GET['q'])) {echo htmlspecialchars($_GET['q']); } ?>" autofocus>
<button type="submit"><i class="icon-search"></i></button>
</form>
</div>