I want to create a search bar for my website where it can detect input from the user in the form of typing. How do I start going about this such that when the user starts typing he/she immediately types on the search bar. I am familiar with autofocus, however what I am looking for is automatic redirection upon typing even when the user has clicked something else on the page such that the cursor on autofocus is not on the search bar any more. Is this possible? How does the browser detect typing?
Thanks in advance!