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
Web Development Articles
Page 56 of 801
HTML DOM Input Submit formMethod property
The HTML DOM Input Submit formMethod property sets or returns the value of the formmethod attribute of a submit button. This property specifies which HTTP method should be used when sending form data to the server and overrides the method attribute of the parent element. Syntax Following is the syntax for setting the formMethod property − submitObject.formMethod = "get|post" Following is the syntax for returning the formMethod property − var method = submitObject.formMethod Property Values The formMethod property accepts the following values − get − The ...
Read MoreHTML DOM Input Submit type Property
The HTML DOM Input Submit type property is associated with input elements having type="submit". This property is read-only and always returns the string "submit" for submit button elements. It helps identify the type of input element programmatically in JavaScript. The submit type property is useful when you need to verify or distinguish between different input types in forms, especially when working with multiple input elements dynamically. Syntax Following is the syntax for the submit type property − submitObject.type Return Value The property returns a string value "submit" representing the type of the ...
Read MoreHTML DOM Input Text autocomplete Property
The HTML DOM Input Text autocomplete property controls whether a text input field should have autocomplete functionality enabled or disabled. This property is associated with the autocomplete attribute of an element with type="text". The autocomplete feature allows browsers to automatically fill in text fields based on values the user has entered previously. This improves user experience by reducing typing effort for commonly entered data like names, addresses, and email addresses. Syntax Following is the syntax for setting the autocomplete property − textObject.autocomplete = "on|off" Following is the syntax for getting the autocomplete ...
Read MoreHTML DOM Input Text form Property
The HTML DOM Input Text form property returns a reference to the form element that contains the input text field. If the input text field is not enclosed within a form element, this property returns null. This is a read-only property that provides access to the parent form for validation, submission, or other form-related operations. Syntax Following is the syntax for the input text form property − textObject.form Return Value The form property returns − A Form object reference if the input text field is contained within a form element null ...
Read MoreHTML DOM Form target property
The HTML DOM Form target property is used to specify where the response should be displayed after form data has been submitted. It controls whether the form response opens in the current window, a new tab, a new window, or a specific frame. This property sets or retrieves the value of the form's target attribute. Syntax Following is the syntax for getting the target property − var target = formObject.target; Following is the syntax for setting the target property − formObject.target = "_blank|_self|_parent|_top|framename"; Parameters The target property accepts the ...
Read MoreHTML DOM fullscreenElement property
The HTML DOM fullscreenElement property returns the element that is currently displayed in fullscreen mode on the page. If no element is in fullscreen mode, it returns null. Syntax Following is the syntax for the fullscreenElement property − document.fullscreenElement Return Value The property returns − Element object − The DOM element currently displayed in fullscreen mode. null − If no element is currently in fullscreen mode. Browser Compatibility Due to different browser implementations, vendor prefixes are required for cross-browser compatibility − Browser Property Name ...
Read MoreHTML DOM fullscreenEnabled() method
The HTML DOM fullscreenEnabled property is a read-only boolean property that determines whether fullscreen mode is available for the current document. It returns true if fullscreen mode is supported and allowed, otherwise it returns false. This property is useful for checking fullscreen support before attempting to enter fullscreen mode, providing a better user experience by preventing errors when fullscreen functionality is not available. Syntax Following is the syntax for the fullscreenEnabled property − document.fullscreenEnabled Return Value The fullscreenEnabled property returns − true − If fullscreen mode is available and allowed ...
Read MoreHTML DOM Del object
The HTML DOM Del object represents the element in the DOM. The element is used to mark text that has been deleted from a document, typically displayed with a strikethrough style. The Del object provides properties and methods to create, access, and manipulate elements programmatically using JavaScript. Syntax Following is the syntax for creating a Del object − var delElement = document.createElement("DEL"); To access an existing element − var delElement = document.getElementById("delId"); Properties The Del object supports the following specific properties − ...
Read MoreHTML DOM Input Radio form Property
The HTML DOM Input Radio form property returns a reference to the form element that contains the given radio button. If the radio button is not inside a form, this property returns null. This is a read-only property that helps identify which form controls a specific radio button. Syntax Following is the syntax for the input radio form property − radioObject.form Return Value The form property returns − Form object − A reference to the form element that contains the radio button null − If the radio button is not inside ...
Read MoreHTML DOM Input Password size property
The HTML DOM Input Password size property is used for setting or returning the size attribute value of a password input field. It defines the visible width of the password field in terms of characters. The default width is 20 characters. Syntax Following is the syntax for setting the password size property − passwordObject.size = number Following is the syntax for getting the password size property − passwordObject.size Here, number represents the password field width in characters. The default width is 20 characters. Return Value The size property ...
Read More