Front End Technology Articles

Page 55 of 652

HTML DOM Input Submit formMethod property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 189 Views

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 More

HTML DOM Input Submit type Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 157 Views

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 More

HTML DOM Input Text autocomplete Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 268 Views

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 More

HTML DOM Input Text form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 202 Views

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 More

HTML DOM Form target property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 338 Views

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 More

HTML DOM fullscreenElement property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 210 Views

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 More

HTML DOM fullscreenEnabled() method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 176 Views

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 More

HTML DOM Del object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 195 Views

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 More

HTML DOM Input Radio form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 200 Views

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 More

HTML DOM Input Password size property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 237 Views

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
Showing 541–550 of 6,519 articles
« Prev 1 53 54 55 56 57 652 Next »
Advertisements