HTML DOM Textarea select() Method Last Updated : 14 Jun, 2023 Comments Improve Suggest changes Like Article Like Report The select() method in HTML DOM is used to select the entire content of the text area or in a <input> element that includes a text field. Syntax: textareaObject.select() Parameters: This method does not accept any parameters. Return Value: It does not return any value. Example: In this example, we will see the use of the select() method HTML <!DOCTYPE html> <html> <head> <title> DOM Textarea select() Method </title> </head> <body> <h1 style="color: green;"> GeeksforGeeks </h1> <h2> Textarea select() Method </h2> <textarea type="text" id="text"> Welcome to GeeksforGeeks </textarea> <br> <button onclick="Geeks()"> Select text </button> <script> function Geeks() { let doc = document.getElementById('text'); doc.select(); } </script> </body> </html> Output: Supported Browsers: The browser supported by the DOM textarea select() method are listed below: Apple Safari 1Google Chrome 1Edge 12Firefox 1Opera 12.1Internet Explorer 5 Comment More infoAdvertise with us Next Article HTML DOM Textarea select() Method V Vishal Chaudhary 2 Follow Improve Article Tags : Web Technologies HTML Web technologies HTML-DOM Similar Reads HTML DOM dl Object The DOM dl object is used to represent the HTML <dl> element. The dl element can be accessed using the getElementById() method. The dl is used to create a description list in HTML. Syntax: document.getElementById("id"); Where âidâ is the ID assigned to the dl tag. Example 1: In the below progr 1 min read HTML | DOM DT Object The DOM dt object is used to represent the HTML <dt> element. The dt element can be accessed using the getElementById() method. Syntax: document.getElementById("id"); Where âidâ is the ID assigned to the dt tag. Example-1: html <!DOCTYPE html> <html> <body> <h1 style = 1 min read HTML | DOM Style borderTopColor Property The borderTopColor property allows us to set/get the color of top border of element. Syntax: It returns the borderTopColor property. object.style.borderTopColorIt is used to set the borderTopColor property. object.style.borderTopColor = "color|transparent|initial| inherit" Return Value:The borderTop 2 min read HTML DOM Style borderLeftColor Property The borderLeftColor property in HTML DOM allows us to set/get the color to the left border of an element. Syntax: It is used to return the borderLeftColor property. object.style.borderLeftColorIt is used to set the borderLeftColor property. object.style.borderLeftColor = "color | transparent | ini 2 min read HTML DOM Paragraph Object The DOM paragraph object is used to represent the HTML <p> element. The p element is accessed by getElementById(). Syntax: document.getElementById("id"); Where âidâ is the ID assigned to the p tag. The below programs illustrate the p object: Property Values align: It is used to set or return t 2 min read HTML DOM Label Object The DOM Label Object is used to represent the <label> element. The Label element is accessed by getElementById(). Properties: control: It is used to return the labeled control.form: It is used to return the address of the form that contains the label.htmlFor: It is used to set or return the va 2 min read HTML DOM Footer Object The DOM footer object is used to represent the HTML <footer> element. The footer element can be accessed using the getElementById() method. Syntax: document.getElementById("id"); Where âidâ is the ID assigned to the footer tag. Example 1: In the below program the footer element is accessed and 1 min read HTML DOM Style borderRightColor Property The borderRightColor property allows us to set/get the color to the right border of an element. Syntax: It is used to return the borderRightColor property. object.style.borderRightColorIt is used to set the borderRightColor property. object.style.borderRightColor = "color|transparent|initial|inherit 2 min read HTML DOM fullscreenElement Property The fullscreenElement property in HTML is used to return the element that is currently in fullscreen. This property may require specific prefixes to work with different browsers. Syntax:document.fullscreenElementReturn Value: Returns the element that is currently in full-screen mode, or null if full 2 min read HTML DOM Location port Property The HTML DOM Location Port property returns or sets the port number of the current URL. Syntax: Get the port property:Set the port property: Property Value: A String, to be assigned as a port Return Value: A String represents the port number of a URL. Example: In this example, we will use the HTML D 1 min read Like