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
Articles by AmitDiwan
Page 267 of 840
HTML DOM Input Search value property
The HTML DOM Input Search value property is associated with input elements having type="search". This property allows you to get or set the current value of a search input field, making it useful for both displaying default values and retrieving user input programmatically. Syntax Following is the syntax for getting the value property − var value = searchObject.value; Following is the syntax for setting the value property − searchObject.value = text; Here, text is a string representing the value to be set in the search field. Return Value ...
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 Submit autofocus property
The HTML DOM Input Submit autofocus property is associated with the HTML element's autofocus attribute. This property is used for setting or returning whether the submit button should be automatically focused when the page loads. When a submit button has autofocus enabled, it receives keyboard focus immediately after the page finishes loading, allowing users to press Enter to submit the form without clicking or tabbing to the button first. Syntax Following is the syntax for setting the autofocus property − submitObject.autofocus = true|false Following is the syntax for getting the autofocus property ...
Read MoreHTML DOM Textarea readOnly Property
The HTML DOM Textarea readOnly property sets or returns whether a textarea element is read-only. When set to true, users cannot modify the textarea content, but they can still select and copy the text. This property is useful for displaying non-editable content in textarea format while preserving the element's visual appearance. Syntax Following is the syntax for getting the readOnly property − textareaObject.readOnly Following is the syntax for setting the readOnly property − textareaObject.readOnly = true | false Return Value The property returns a boolean value − ...
Read MoreHTML DOM Input Week stepDown( ) Method
The HTML DOM Input Week stepDown() method decreases the value of a week input field by a specified number of weeks. This method is useful for programmatically adjusting week values without direct user input manipulation. Syntax Following is the syntax for the stepDown() method − inputWeekObject.stepDown(number) Parameters The stepDown() method accepts the following parameter − number (optional) − A numeric value representing the number of weeks to decrease. If not specified, the default value is 1. Return Value The method does not return any value. It directly modifies ...
Read MoreHTML DOM Input Week stepUp( ) Method
The HTML DOM Input Week stepUp() method is used to increase the value of a week input field by a specified number of weeks. This method provides a programmatic way to increment the week value without requiring user interaction. Syntax Following is the syntax for the stepUp() method − inputWeekObject.stepUp(number) Parameters The stepUp() method accepts the following parameter − number (optional) − A numeric value that specifies how many weeks to increase the input value by. If omitted, the default value is 1. Return Value This method does ...
Read MoreHTML DOM Input Submit form property
The HTML DOM Input Submit form property returns a reference to the form element that contains the submit button. If the submit button is not inside a form element, it returns null. This property is read-only and provides a way to access the parent form from a submit button element. Syntax Following is the syntax for the Input Submit form property − submitObject.form Return Value The property returns − A form object reference if the submit button is inside a form element null if the submit button is not contained within ...
Read MoreHTML DOM Textarea wrap Property
The HTML DOM Textarea wrap property gets and sets the value of the wrap attribute of a textarea element. This property controls how text wrapping behaves when the form is submitted to the server. Syntax Following is the syntax for getting the wrap property − object.wrap Following is the syntax for setting the wrap property − object.wrap = "soft" | "hard" Property Values The wrap property accepts the following values − soft − The text is wrapped visually but line breaks are not inserted when the ...
Read MoreHTML DOM Input Week type Property
The HTML DOM Input Week type property is used to get or set the type attribute of an input element that is initially of type "week". This property allows you to dynamically change the input type or retrieve its current type value using JavaScript. Syntax Following is the syntax for getting the type property − inputWeekObject.type Following is the syntax for setting the type property − inputWeekObject.type = stringValue Return Value The property returns a string representing the current type of the input element. For a week input, it ...
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 More