HTML | DOM Textarea Object Last Updated : 21 Jul, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The Textarea Object in HTML DOM is used to represent the HTML <textarea> Element. The textarea element can be accessed by using getElementById() method.Syntax: document.getElementById("ID"); Where ID is assigned to the <textarea> element.Property Values: autofocus: It is used to set or return whether the element should get focus when the page loads.cols: It is used to set or return the value of this cols attribute of a textarea Element.defaultvalue: It is used to set or return the defaultvalue of the textarea element.disabled: It is used to set or return the value of the disabled attribute of the textarea element.form: It is used to return the reference of the form that contains the textarea field.maxLength: It is used to set or return the value of the maxattribute of a textarea field.name: It is used to set or return the name attribute of a textarea field.placeholder: It is used to set or return the value of the placeholder attribute of a textarea field.readOnly: It is used to return the value of the readonly attribute of a textarea field.required: It is used to set or return whether the input element must be filled before submitting the form.type: rows: It is used to set or return the value of the type attribute of a textareafieldvalue: It is used to set or return the content of a textarea field.wrap: It is used to return the value of the wrap attribute of a textarea field. Methods: select(): It is used to select all the entire contents present in the textarea field. Example 1: This example describes the getElementById() method to access the <textare> element. html <!DOCTYPE html> <html> <head> <title> HTML DOM Textarea Object </title> </head> <body style = "text-align:center"> <h1 style = "color: green;"> GeeksforGeeks </h1> <h2>DOM Textarea Object</h2> <!--A disabled textarea--> <textarea id = "myGeeks"> GeeksForGeeks.A computer science portal for Geeks. </textarea> <br> <button onclick = "Geeks()"> Submit </button> <p id = "sudo"></p> <script> function Geeks() { var x = document.getElementById("myGeeks").value; document.getElementById("sudo").innerHTML = x; } </script> </body> </html> Output: Before Click on the Button: After Click on the Button: Example 2: Textarea Object can be created by using the document.createElement method. html <!DOCTYPE html> <html> <head> <title> HTML DOM Textarea Object </title> </head> <body style = "text-align:center"> <h1 style = "color: green;"> GeeksforGeeks </h1> <h2>DOM Textarea Object</h2> <button onclick = "Geeks()"> Submit </button> <!-- script to create textarea --> <script> function Geeks() { // textarea tag is created var g = document.createElement("TEXTAREA"); var f = document.createTextNode( "GeeksForGeeks.A computer science portal for Geeks."); g.appendChild(f); document.body.appendChild(g); } </script> </body> </html> Output: Before Click on the Button: After Click on the Button: Supported Browsers: The browser supported by DOM Textarea Object are listed below: Google ChromeEdge 12 and aboveInternet ExplorerFirefoxOperaSafari Comment More infoAdvertise with us Next Article HTML | DOM HTML Object M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML | DOM HTML Object The HTML Object property in HTML DOM is used to represent or access the HTML <html> element with in the object. The <html> element is used to return the HTML document as an Element Object. Syntax: It is used to access a <html> element.var x = document.getElementsByTagName("HTML")[0 3 min read HTML | DOM IFrame Object The IFrame Object property in HTML DOM is used to create and access the <iframe> element within the object. An inline frame is used for embedding another document within the current HTML document. Syntax:It is used to access a <iframe> element.var x = document.getElementById("myframe");I 3 min read HTML | DOM Input Color Object The Input Color Object property in HTML DOM is used to create and access the <input> element within the object. The <input> is used to enter data in the input field. Declaration of input control that allow user to input data is can be done by <input> elements are used within a < 3 min read HTML | DOM TableData Object The TableData object in HTML DOM is used to represent the HTML td element. The td element can be accessed by using getElementById() method. Syntax: To Access td Element: document.getElementById("id");To Create td Element: document.createElement("td"); TableData Object Properties: PropertyDescription 3 min read HTML | DOM Input Number Object The Input Number Object in HTML DOM is used to represent an HTML input element with type= "number". The input element with type= "number" can be accessed by using getElementById() method. Syntax: It is used to access input number object.document.getElementById("id");It is used to create input elemen 3 min read HTML | DOM Style overflowY Property The Style overflowY property in HTML DOM is used to specify the behavior of the content when it overflows an element's top and bottom edges. The content may be hidden, shown or a scrollbar according to the value. Syntax: It returns the overflowY property.object.style.overflowYIt is used to set the o 6 min read HTML | DOM Object Object The Object object represents only HTML <object> element. We can access any <object> element by using the getElementById(); and also can create object element by using createElement(); method.Syntax: It is used to access Object element document.getElementById("id"); It is used to create o 2 min read HTML DOM Window localStorage Properties HTML DOM Window localStorage Properties allow you to store value pairs in web browsers using objects. It is a read-only property. This object is not expired even if the browser is closed. So, the data is never lost. Return Values: It returns  a Storage object. Syntax: SAVING data to localStorage usi 2 min read HTML DOM Style transform Property The HTML DOM style transform property is used to transform the object. The transform property allows to rotate, scale, move, skew, etc of an element. It can use 2D or 3D transformation. SyntaxIt returns the transform property.object.style.transformIt sets the transform property.object.style.transfor 3 min read HTML DOM Textarea cols Property The DOM Textarea cols Property is used to set or return the value of the cols attribute of a textarea field. The cols attribute how many average-width characters should fit on a single line. Syntax: It is used to return the cols property.textareaObject.colsIt is used to Set the cols property:textare 2 min read Like