Computer Science, asked by Maran1107, 1 year ago

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 kandikan
0
create a text box and set the default focus to text box
Answered by smartbrainz
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