Setting input focus after tab is clicked -
When a page contains more than one tab containing a search box, one of the tabs is always selected; Either the default tab is selected or the user has changed the tab.
Example: The search box
Do you know that in any case, the search input box in the selected tab should always have keyboard focus in order for users to start typing their keywords. When a separate tab is clicked, could I take the focus in the input box? I got to work on the first tab, but when I click on another tab, the focus is lost.
I am using scripts:
Comments
Post a Comment