HTML | DOM Input Week Object Last Updated : 26 Aug, 2022 Comments Improve Suggest changes Like Article Like Report The Input Week object in HTML DOM represents an <input> element with type = "week" attribute. The element 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 reference of data list that contains the week field.form: It returns the reference of form that contains the week field.autocomplete: It is used to set or return the value of the autocomplete attribute of a week field.autofocus: It is used to set or return if the week field should automatically get focus when the page loads.defaultvalue: It is used set or return the default value of a week field.disabled: It is used to set or return whether a week field is disabled or not.max: It is used to set or return the value of the max attribute of a week field.min: It is used to set or return the value of the min attribute of a week field.name: It is used to set or return the value of the name attribute of a week field.readOnly: It is used to set or return whether the week field is read-only or not.required: It is used to set or return whether the week field must be filled out before submitting a form.step: It is used to set or return the value of the step attribute of the week field.type: It returns the type of form element the week field belongs.value: It is used set or return the value of the value attribute of a week field. Methods stepDown(): It is used for decrementing the value of the week field by a specified number.stepUp(): It is used for incrementing the value of the week field by a specified number.select(): It is used to select the content of the Input week field. Example 1: This example describes the getElementById() method to access the <input> element with type = "week" attribute. HTML <!DOCTYPE html> <html> <head> <title> DOM Input Week Object </title> </head> <body> <center> <h1 style = "color:green;"> GeeksForGeeks </h1> <h2>DOM Input Week Object</h2> <label for = "uname" style = "color:green"> <b>Enter week</b> </label> <input type = "week" id = "gfg" placeholder = "Enter week"> <br><br> <button type = "button" onclick = "geeks()"> Click </button> <p id = "GFG"></p> <script> function geeks() { var link = document.getElementById("gfg").value; document.getElementById("GFG").innerHTML = link; } </script> </center> </body> </html> Output: Before Click on the button: After Click on the button: Example 2: This example describes the document.createElement() method to create <input> element with type = "week" attribute. HTML <!DOCTYPE html> <html> <head> <title> DOM Input Week Object </title> </head> <body> <center> <h1 style = "color:green;"> GeeksForGeeks </h1> <h2>DOM Input Week Object</h2> <label for = "uname" style = "color:green"> <b>Enter week</b> </label> <p id = "GFG"></p> <button type = "button" onclick = "geeks()"> Click </button> <!-- script to create week object --> <script> function geeks() { /* Create input element */ var link = document.createElement("INPUT"); /* Set the type attribute */ link.setAttribute("type", "week"); /* Append node value */ document.getElementById("GFG").appendChild(link); } </script> </center> </body> </html> Output: Before Click on the button: After Click on the button: Supported Browsers: Google Chrome 20Edge 12Opera 11 Comment More infoAdvertise with us B bestharadhakrishna Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads HTML DOM Anchor Object The Anchor Object in HTML DOM is used to represent the <a> element. The anchor element can be accessed by using getElementById() method. Syntax: document.getElementById("ID"); Where ID is assigned to the anchor tag. Property Values: Property Description charset Set or return the character set. 2 min read HTML DOM ColumnGroup Object The ColumnGroup Object in HTML DOM is used to represent the HTML <colgroup> element. This tag is used to set or return the properties of <colgroup> element. It can be accessed by using getElementById() method. Syntax: document.getElementById( "ColGroup_ID" );This ColGroup_ID is assigned 2 min read HTML | DOM Window frameElement Properties HTML DOM Window frameElement property returns the iframe element in which the window is embedded or stored. If it is not stored, in that case, it simply returns a null value. Syntax: window.frameElement Return Value: It returns an IFrame object or null. Example: html <!DOCTYPE html> <html 1 min read 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 Like