Front End Technology Articles

Page 10 of 652

HTML DOM DT object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 154 Views

The HTML DOM DT object is associated with the HTML element, which represents a description term in a description list. The DT object allows you to create and manipulate elements dynamically using JavaScript, enabling interactive generation of definition lists on web pages. The element is typically used within a (description list) container alongside (description definition) elements to create structured lists of terms and their descriptions. Syntax Following is the syntax for creating a DT object − var dtElement = document.createElement("DT"); Following is the syntax for accessing an existing ...

Read More

HTML DOM Geolocation position property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 242 Views

The HTML DOM Geolocation position property provides access to a user's device location and position data on Earth. The user must explicitly approve location sharing before this property can function, ensuring privacy protection. This property is commonly used for location-based services and tracking applications. Syntax Following is the syntax for accessing the position property − position.coords position.timestamp The position object is typically obtained through the navigator.geolocation.getCurrentPosition() method callback function. Properties The position object contains the following read-only properties − Property Description position.coords Returns a ...

Read More

HTML DOM HashChangeEvent

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 200 Views

The HTML DOM HashChangeEvent is an interface that represents events fired when the hash portion (fragment identifier) of a URL changes. This event occurs when the part of the URL after the # symbol is modified, either programmatically through JavaScript or by user interaction with anchor links. The HashChangeEvent is commonly used in single-page applications (SPAs) for client-side routing and navigation without full page reloads. Syntax Following is the syntax for accessing HashChangeEvent properties − event.newURL event.oldURL The event is typically handled using the onhashchange event handler − window.addEventListener('hashchange', function(event) { ...

Read More

HTML DOM Heading object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 569 Views

The HTML DOM Heading object represents any of the HTML heading elements from to . These objects allow you to create, access, and manipulate heading elements dynamically using JavaScript. You can create new heading elements with createElement() and access existing ones with methods like getElementById(). Syntax Following is the syntax for creating a Heading object − var headingElement = document.createElement("H1"); Following is the syntax for accessing an existing Heading object − var headingElement = document.getElementById("headingId"); Creating Heading Elements The createElement() method can create any heading level from H1 ...

Read More

HTML DOM Input Number value Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 464 Views

The HTML DOM Input Number value property is used to get or set the value of an element with type="number". This property allows you to retrieve the current numeric value entered by the user or programmatically set a default value for the number input field. Syntax Following is the syntax for getting the value property − var value = numberObject.value; Following is the syntax for setting the value property − numberObject.value = number; Here, number is a numeric value or string representation of a number that you want to ...

Read More

HTML DOM Input Password form Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 217 Views

The HTML DOM Input Password form property is used for returning the form reference that contains the input password field. If the input password field is outside the form then it will simply return null. This property is read-only. Syntax Following is the syntax for input password form property − passwordObject.form Return Value The form property returns one of the following values − Form object − A reference to the form element that contains the password input field. null − If the password input field is not contained ...

Read More

HTML DOM exitFullscreen() method

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 102 Views

The HTML DOM exitFullscreen() method is used to exit fullscreen mode for an element that is currently displayed in fullscreen. This method is called on the document object, not on individual elements, and it returns a Promise that resolves when the element has exited fullscreen mode. Syntax Following is the syntax for the exitFullscreen() method − document.exitFullscreen() Return Value The method returns a Promise that resolves to undefined when fullscreen mode is successfully exited. The Promise may be rejected if an error occurs during the exit process. How It Works The ...

Read More

HTML DOM Fieldset disabled property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 462 Views

The HTML DOM Fieldset disabled property controls whether form elements inside a fieldset are enabled or disabled. When set to true, all form controls within the fieldset become disabled and appear greyed out. Users cannot interact with disabled elements − they cannot click, type, or select them. Syntax Following is the syntax to set the disabled property − fieldsetObject.disabled = true|false Following is the syntax to return the disabled property − fieldsetObject.disabled Where fieldsetObject is a reference to a fieldset element obtained using methods like getElementById() or querySelector(). Parameters ...

Read More

HTML DOM Fieldset Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 212 Views

The HTML DOM Fieldset object represents the HTML element, which groups related form controls and labels. This object provides properties and methods to dynamically create, access, and manipulate fieldset elements using JavaScript. The element is commonly used to group form inputs, checkboxes, radio buttons, and other controls together with an optional element that provides a caption for the group. Syntax Following is the syntax for creating a fieldset element using JavaScript − var fieldsetElement = document.createElement("FIELDSET"); To access an existing fieldset element by its ID − var fieldsetElement ...

Read More

HTML DOM Form autocomplete Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 206 Views

The HTML DOM Form autocomplete property is associated with the autocomplete attribute of the form element. This property allows you to set or return the autocomplete attribute value of a form, controlling whether the browser should automatically complete form fields based on previously entered values. When autocomplete is enabled ("on"), the browser suggests values based on user's previous input. When disabled ("off"), users must manually enter all values without browser assistance. The autocomplete property can be overridden for specific input fields within the form. Syntax Following is the syntax for setting the autocomplete property − ...

Read More
Showing 91–100 of 6,519 articles
« Prev 1 8 9 10 11 12 652 Next »
Advertisements