HTML | DOM Textarea autofocus Property Last Updated : 26 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The DOM Textarea autofocus Property is used to set or return whether the element should get focus when the page loads. This property is used to reflect the HTML autofocus attribute. Syntax: It is used to Return the autofocus property. textareaObject.autofocusIt is used to Set the autofocus property. textareaObject.autofocus = true|false Property Values: true: It defines a textarea get focus.false: It has a default value. It defines that the textarea does not get focus. Return Value: It returns a boolean value which represent that the textarea get autofocus or not. Example: HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Textarea autofocus Property </title> </head> <body style="text-align:center"> <h1 style="color: green;"> GeeksforGeeks </h1> <h2>DOM Textarea autofocus Property</h2> <!-- Assigning id to textarea. --> <textarea id="myGeeks" autofocus> GeeksForGeeks. A computer science portal for Geeks. </textarea> <br> <br> <button onclick="Geeks()">Submit</button> <p id="sudo"></p> <script> function Geeks() { // Return Textarea autofocus Property var x = document.getElementById("myGeeks").autofocus; document.getElementById("sudo").innerHTML = x; } </script> </body> </html> Output:Before Clicking On Button: After Clicking On Button: Example-2: HTML <!DOCTYPE html> <html> <body style="text-align:center"> <h1 style="color: green;"> GeeksforGeeks </h1> <h2>DOM Textarea autofocus Property</h2> <!-- Assigning id to textarea. --> <textarea id="myGeeks" autofocus> GeeksForGeeks. A computer science portal for Geeks. </textarea> <br> <br> <button onclick="Geeks()">Submit</button> <p id="sudo"></p> <script> function Geeks() { // sets Textarea autofocus Property var x = document.getElementById("myGeeks").autofocus ="false"; document.getElementById("sudo").innerHTML ="The value of the autofocus attribute is now set to " + x; } </script> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Supported Browsers: The browser supported by DOM Textarea autofocus Property are listed below: Google ChromeInternet ExplorerFirefoxOperaSafari Comment More infoAdvertise with us M manaschhabra2 Follow Improve Article Tags : Misc Web Technologies HTML HTML-DOM Practice Tags : Misc Similar Reads HTML | DOM Style columnRuleStyle Property The DOM style columnRuleStyle Property in HTML is used to define or determine the style of rule between columns. Syntax : To set the property: object.style.columnRuleStyle = "none|hidden|dotted|dashed|solid| double|groove|ridge|inset|outset|initial|inherit" To return the property: object.style.colum 6 min read HTML | DOM Style columnRuleWidth Property The Style columnRuleWidth property in HTML DOM is used to define or determine the width of the rule between the columns. Syntax: It returns the columnRuleWidth property.object.style.columnRuleWidthIt is used to set columnRuleWidth property.object.style.columnRuleWidth = "medium|thin|thick|length| in 3 min read HTML DOM adoptNode() Method This DOM adoptNode() method is used to adopt a node from another document. All node types can be adopted. All child nodes along with the original node can be adopted. AdoptNode() method is used to return node objects.Syntax: document.adoptNode(node)Parameter Value: DOM adoptNode() method contains on 2 min read HTML | DOM Style zIndex Property The Style zIndex property is used for set or return the stack order of a positioned element. The element which has a lower stack order will be behind of another element with higher stack order. For example, the element with stack order(1) will be in front of the element with stack order(0). The Styl 2 min read HTML | DOM Input Password Object The Input Password Object in HTML DOM is used to represent an HTML input element with type="password". The input element with type="password" can be accessed by using getElementById() method. Syntax: It is used to access input type="password"document.getElementById("id");It is used to create type="p 3 min read HTML | DOM Column Object The Column Object in HTML DOM is used to represent the HTML <col> element. This tag is used to set or get the properties of <col> element. It can be accessed by using getElementById() method.Syntax: document.getElementById("Col_ID"); This Col_ID is assigned to HTML < col > element. 2 min read HTML | DOM Input Hidden Object The Input Hidden object in HTML DOM represents the <input> element with type = âhiddenâ attribute. The element can be accessed by using getElementById() method.Syntax: document.getElementById("id"); where id is assigned to the <input> tag.Property Values: defaultvalue: It is used to set 2 min read HTML | DOM Input Time Object The Input Time object in HTML DOM represents an <input> element with type = "time" attribute. The time attribute can be accessed by using getElementById() method. Syntax: document.getElementById("id"); where id is assigned to the <input> tag. Property Values: list: It returns the referen 3 min read HTML DOM Geolocation coordinates Property The DOM Geolocation coordinates Property in HTML is used to return the position and altitude of the device on Earth. The returned Coordinates object could be used for various purposes including navigation and tracking the position of the device. Property Values: ValuesDescriptioncoordinates.latitude 2 min read HTML DOM Textarea disabled Property The DOM Textarea disabled Property is used to set or return whether the textarea element would be disabled or not. A disabled text area is un-clickable and unusable. It is a boolean attribute and is used to reflect the HTML Disabled attribute. Syntax: It is used to return the disabled property.texta 2 min read Like