Suppose a webpage contains a single text field. we want to make the page such that a user can immedietly start typing in the text field without clicking on it. what is correct way using
Answers
Answered by
0
create a text box and set the default focus to text box
Answered by
4
Explanation:
In HTML the "Autofocus" attribute is used to set focus on the element during loading of the web page. The "Autofocus" attribute is a Boolean attribute. This makes that a text column automatically gets focus during the loading of the web page.
Alternatively, to set focus a TextBox in Windows form make the TabIndex of the TextBox field to either zero or the least of any control in the form. This enables the web page to automatically focus the control to the lowest TabIndex.
Similar questions