When the Web page is loaded in the browser, the cursor is already placed inside of the TextBox, ready to start typing. Using which of the following methods, you can place the cursor inside the TextBox?
-
Focus
-
AutoPostBack
-
Submit
-
Selected
A
Correct answer
Explanation
The Focus() method is used to set input focus to a specific TextBox control when the page loads, making it active and ready for user input. AutoPostBack causes form submission, Submit submits the entire form, and Selected is a property for list-type controls.