Thursday, March 11, 2021

Autofocus CSS Attributes

   
Autofocus CSS Attributes

Autofocus attribute is used to automatically where the pointer is tab pointed at the web page at the page loading time. Autofocus attribute works for input, textarea, select, link, button, etc., in your web page if you set the Autofocus attribute for a single location simple add Autofocus in the tag browser will automatically take the pointer in that particular location.

Syntax:
<input type="text" autofocus>
Example:

You See the cursor will point in this textbox when the page load.

No comments:

Post a Comment