karthikeya Boyini

karthikeya Boyini

1,421 Articles Published

Articles by karthikeya Boyini

Page 5 of 143

HTML DOM Input Month readOnly Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 176 Views

The HTML DOM Input Month readOnly property controls whether a month input field can be edited by the user. When set to true, the field becomes read-only and users cannot change its value, though the field remains focusable and its value is still included in form submissions. Syntax Following is the syntax for returning the readOnly property − object.readOnly Following is the syntax for setting the readOnly property − object.readOnly = true | false Parameters The readOnly property accepts the following boolean values − true − Makes ...

Read More

HTML DOM Input Month type Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 194 Views

The HTML DOM Input Month type property returns the value of the type attribute of an input month field. This property is read-only and always returns "month" for input elements with type="month". Syntax Following is the syntax to access the type property − inputObject.type Return Value This property returns a string representing the type of the input element. For month input fields, it always returns "month". Example Following example demonstrates how to get the type property of an input month field − Input ...

Read More

HTML DOM Input Month value Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 173 Views

The HTML DOM Input Month value property returns and modifies the value of a month input field. This property represents the selected month and year in YYYY-MM format, where YYYY is the four-digit year and MM is the two-digit month (01-12). Syntax Following is the syntax for returning the value − object.value Following is the syntax for setting the value − object.value = "YYYY-MM" Return Value The property returns a string representing the month and year in YYYY-MM format. If no month is selected, it returns an empty string ...

Read More

HTML DOM Input Month autofocus Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 147 Views

The HTML DOM Input Month autofocus Property controls whether a month input field should automatically receive focus when the page loads. This property returns a boolean value indicating the current autofocus state and allows you to programmatically enable or disable the autofocus behavior. Syntax Following is the syntax to return the autofocus property − object.autofocus Following is the syntax to set the autofocus property − object.autofocus = true | false Parameters The autofocus property accepts the following boolean values − true − The month input field will ...

Read More

HTML DOM Input Number Object

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 219 Views

The HTML DOM Input Number Object represents an element with type="number". This object provides properties and methods to interact with number input fields programmatically through JavaScript. The Input Number Object is useful for creating dynamic forms, validating numeric input, and implementing custom number controls with step increment/decrement functionality. Syntax You can create an Input Number Object in two ways − Creating a new Input Number element: var numberInput = document.createElement("INPUT"); numberInput.setAttribute("type", "number"); Accessing an existing Input Number element: var numberInput = document.getElementById("myNumber"); Properties The Input Number ...

Read More

HTML DOM Input Number stepUp() Method

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 167 Views

The HTML DOM Input Number stepUp() method is used to increment the value of a number input field by a specified amount. This method provides a programmatic way to increase numeric values, which is particularly useful for creating custom increment controls or automated value adjustments. Syntax Following is the syntax for the stepUp() method − numberInputObject.stepUp(stepValue) Parameters The stepUp() method accepts the following parameter − stepValue (optional) − A number specifying how much to increment the input value. If omitted, the default value is 1. Return Value This ...

Read More

HTML DOM Input Number required Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 178 Views

The HTML DOM Input Number required property sets or returns whether a number input field must be filled out before submitting the form. This property corresponds to the HTML required attribute and enables client-side form validation. Syntax Following is the syntax for returning the required property − object.required Following is the syntax for setting the required property − object.required = true | false Property Values The required property accepts the following boolean values − true − The number input field is required and must be filled before ...

Read More

HTML DOM Input Number placeholder Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 271 Views

The HTML DOM Input Number placeholder property returns and modifies the value of the placeholder attribute of a number input field. The placeholder provides a hint to the user about what kind of value is expected in the input field. Syntax Following is the syntax for returning the placeholder value − object.placeholder Following is the syntax for modifying the placeholder value − object.placeholder = "text" Parameters text − A string that specifies the placeholder text to display in the number input field. Return Value The ...

Read More

HTML DOM Input Number step Property

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 165 Views

The HTML DOM Input Number step property sets and retrieves the value of the step attribute for number input fields. The step attribute defines the legal number intervals for the input field, controlling how much the value increases or decreases when using the input's increment/decrement arrows. Syntax Following is the syntax for getting the step value − object.step Following is the syntax for setting the step value − object.step = "number" Parameters The step property accepts a string that represents a positive number. Common values include: "1" ...

Read More

HTML DOM Select Object

karthikeya Boyini
karthikeya Boyini
Updated on 16-Mar-2026 320 Views

The HTML DOM select object represents the element in an HTML document. This object provides properties and methods to dynamically create, manipulate, and interact with dropdown lists using JavaScript. Syntax To create a new select element using JavaScript − document.createElement("SELECT"); To access an existing select element − document.getElementById("selectId"); document.getElementsByTagName("select")[0]; document.querySelector("select"); Properties Following are the key properties of the select object − Property Description autofocus Returns or sets whether the dropdown should automatically get focus when the page loads. ...

Read More
Showing 41–50 of 1,421 articles
« Prev 1 3 4 5 6 7 143 Next »
Advertisements