Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Front End Technology Articles
Page 6 of 652
HTML DOM Input Time step Property
The HTML DOM Input Time step property sets or returns the legal number intervals for the seconds component of a time input field. This property controls the granularity of time selection, determining which second values are considered valid when users interact with the time picker. Syntax Following is the syntax for returning the step value − inputTimeObject.step Following is the syntax for setting the step value − inputTimeObject.step = number Parameters The step property accepts numeric values representing seconds − Parameter Description ...
Read MoreHTML DOM Input Time stepDown( ) Method
The HTML DOM Input Time stepDown() method decreases the value of a time input field by a specified number of minutes. This method is particularly useful for creating time adjustment interfaces or implementing custom time picker controls. Syntax Following is the syntax for the stepDown() method − inputTimeObject.stepDown(number) Parameters The method accepts one optional parameter − number − An integer representing the number of minutes to decrease from the time value. If not specified, the default value is 1. Return Value The stepDown() method does not return any ...
Read MoreHTML DOM Input URL pattern Property
The HTML DOM Input URL pattern property sets or returns the regular expression that validates URL input fields. The pattern attribute's value is checked against the text typed in the URL field to ensure it matches the specified format. Syntax Following is the syntax for returning the pattern value − inputURLObject.pattern Following is the syntax for setting the pattern value − inputURLObject.pattern = "RegExp" Parameters The pattern property accepts a single parameter − RegExp − A string containing a regular expression that the URL input value must ...
Read MoreHTML DOM Input URL readOnly Property
The HTML DOM Input URL readOnly property sets or returns whether a URL input field can be modified by the user. When set to true, the input becomes read-only and cannot be edited, though its value can still be accessed and copied programmatically. Syntax Following is the syntax for getting the readOnly property value − inputURLObject.readOnly Following is the syntax for setting the readOnly property − inputURLObject.readOnly = booleanValue Parameters The booleanValue parameter can be one of the following − Value Description ...
Read MoreHTML DOM Input Week autofocus Property
The Input Week autofocus property in the HTML DOM sets or returns whether an input field of type "week" should automatically receive focus when the page loads. This property corresponds to the HTML autofocus attribute and is useful for improving user experience by immediately directing attention to the week input field. Syntax Following is the syntax for getting the autofocus property − inputWeekObject.autofocus Following is the syntax for setting the autofocus property − inputWeekObject.autofocus = booleanValue Property Values The autofocus property accepts boolean values − ...
Read MoreHTML DOM Input Week defaultValue Property
The HTML DOM Input Week defaultValue property sets or returns the default value of a week input field. This property represents the original value attribute specified in the HTML, which remains constant even when the user changes the input field's current value. It is useful for resetting the field back to its original state. Syntax Following is the syntax for returning the default value − inputWeekObject.defaultValue Following is the syntax for setting the default value − inputWeekObject.defaultValue = "string" Parameters The defaultValue property accepts a string parameter representing a ...
Read MoreHTML DOM Input Week Object
The HTML DOM Input Week Object represents an HTML input element with type week. This object allows users to select a specific week and year, providing methods and properties for manipulating week-based form inputs programmatically. Syntax Following is the syntax to create an input element with type week using JavaScript − var weekObject = document.createElement("INPUT"); weekObject.type = "week"; You can also access an existing week input element − var weekObject = document.getElementById("weekId"); Properties The Input Week Object supports the following properties − Property Description ...
Read MoreHTML DOM Input Week step Property
The HTML DOM Input Week step property sets or returns the legal number intervals for week input fields. This property determines how many weeks the user can step through when using the input controls (like arrow buttons or keyboard navigation). Syntax Following is the syntax for returning the step value − inputWeekObject.step Following is the syntax for setting the step value − inputWeekObject.step = number Parameters The number parameter accepts the following values − Value Description number A positive integer specifying ...
Read MoreHTML DOM Input Week value Property
The HTML DOM Input Week value property gets or sets the value of an HTML input element with type="week". This property returns a string in the format YYYY-WNN where YYYY is the year and NN is the week number (01-53). It allows JavaScript to programmatically read and modify week input values. Syntax Following is the syntax for getting the value − inputWeekObject.value Following is the syntax for setting the value − inputWeekObject.value = "YYYY-WNN" Parameters YYYY − A four-digit year (e.g., 2024) WNN − Week number from W01 ...
Read MoreHTML DOM InputEvent Object
The InputEvent Object in the HTML DOM represents events that occur when the content of a form element changes. This includes typing text, deleting content, pasting data, or any other modification to input elements like text fields, textareas, and content-editable elements. The InputEvent interface extends the UIEvent interface and provides detailed information about the type of input change that occurred, making it useful for creating responsive user interfaces and real-time validation. Properties and Methods The InputEvent object provides the following properties and methods − Property/Method Description data Returns the ...
Read More