Add autofocus to input field

Supported in all major browsers, allows the user to immediately start typing after loading the page.
main
Fabian Schliski 2020-05-10 16:51:42 +02:00 committed by GitHub
parent df6c36cd24
commit 0fc5fa9d99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@
<img class="logo" src="/static/img/logo.png">
<form action="/search" method="post">
<div class="search-fields">
<input type="text" name="q" id="search-bar">
<input type="text" name="q" id="search-bar" autofocus>
<input type="submit" id="search-submit" value="Search">
</div>
</form>