Web Development Articles

Page 26 of 801

HTML DOM Video readyState Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 293 Views

The HTML DOM Video readyState property returns a numeric value that represents the current loading state of a video element. This property is essential for determining whether the video has enough data to begin playback or if it's still loading. Syntax Following is the syntax to get the ready state of a video element − videoElement.readyState Return Value The readyState property returns an integer value from 0 to 4, each representing a different loading state − 0 (HAVE_NOTHING) − No information is available about the media resource 1 (HAVE_METADATA) − Metadata ...

Read More

HTML DOM WheelEvent deltaX Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 211 Views

The HTML DOM WheelEvent deltaX property returns a signed number indicating horizontal scroll direction. It returns a positive value when scrolling right, a negative value when scrolling left, and zero for all other directions. Syntax Following is the syntax for accessing the deltaX property − event.deltaX Return Value The deltaX property returns a double-precision floating-point number representing the horizontal scroll amount − Positive value − User scrolled to the right Negative value − User scrolled to the left Zero (0) − No horizontal scrolling occurred WheelEvent ...

Read More

HTML DOM Window closed Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 226 Views

The HTML DOM Window closed property returns a boolean value that indicates whether a window reference is closed or not. This property is particularly useful when working with popup windows opened using window.open(), allowing you to check their state before performing operations. Syntax Following is the syntax for the Window closed property − window.closed Return Value The closed property returns − true − If the window is closed or was never opened false − If the window is currently open Note: For the main browser window, this property always ...

Read More

HTML DOM Window frameElement Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 331 Views

The HTML DOM Window frameElement property returns the HTML element that contains or embeds the current window, such as , , or . If the window is not embedded within another element (i.e., it's the top-level window), this property returns null. This property is commonly used to determine whether a page is running inside a frame or as a standalone window, and to access properties of the parent element when embedded. Syntax Following is the syntax for accessing the frameElement property − window.frameElement Return Value The frameElement property returns − ...

Read More

HTML DOM localStorage Properties

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 297 Views

The HTML DOM localStorage property enables users to store key-value pairs in the browser's local storage for persistent data storage. Unlike session storage, localStorage data remains available until explicitly removed or cleared, even after the browser is closed and reopened. Syntax Following is the syntax to access localStorage − window.localStorage The localStorage object provides several methods for data manipulation − setItem(key, value) − Stores a key-value pair in localStorage getItem(key) − Retrieves the value associated with the specified key removeItem(key) − Removes a specific key-value pair from localStorage clear() − Removes all ...

Read More

HTML DOM Window opener Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 757 Views

The HTML DOM Window opener property returns a reference to the parent window that opened the current window using the window.open() method. This property allows communication between parent and child windows, enabling the child window to access and manipulate elements in its parent window. Syntax Following is the syntax for accessing the opener property − window.opener Return Value The opener property returns − A reference to the parent window object if the current window was opened by another window using window.open(). null if the window was opened directly by the user ...

Read More

How to disable autocomplete of an HTML input field?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 463 Views

The autocomplete attribute in HTML controls whether the browser should automatically fill in form field values based on previously entered data. Setting autocomplete="off" disables this feature for enhanced privacy and security, particularly useful for sensitive fields like passwords or personal information. Syntax Following is the syntax for disabling autocomplete on an input field − To enable autocomplete explicitly − You can also disable autocomplete for an entire form − Disabling Autocomplete for Individual Fields The most common ...

Read More

How to turn off spell checking (grammar correction) for HTML form elements?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 209 Views

The spellcheck attribute in HTML controls whether the browser's spell checking feature is enabled or disabled for text input fields. By default, most browsers enable spell checking on text inputs and textareas, showing red underlines for misspelled words. Syntax Following is the syntax for the spellcheck attribute − The spellcheck attribute accepts three values − true − Enables spell checking for the element false − Disables spell checking for the element default − Uses the browser's default spell check behavior Disabling Spell Check To disable spell checking ...

Read More

How to create a download link with HTML?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 891 Views

To create a download link with HTML, you use the tag with the download attribute. This attribute forces the browser to download the linked file instead of navigating to it. The download attribute works for same-origin URLs and can specify a custom filename for the downloaded file. Syntax Following is the basic syntax for creating a download link − Download Text To specify a custom filename for the download − Download Text Basic Download Link The simplest download link uses just the download attribute without a value. The ...

Read More

Difference Between HTML and ASP.

Nitin Sharma
Nitin Sharma
Updated on 16-Mar-2026 2K+ Views

Both HTML and ASP are web development technologies widely used for creating web pages and applications. HTML focuses on structuring and presenting content in web browsers, while ASP enables server-side processing to create dynamic, interactive web applications. Understanding the fundamental differences between these technologies is essential for web developers to choose the right approach for their projects. What is HTML? HTML (HyperText Markup Language) is a client-side markup language used to create the structure and content of web pages. The term "HyperText" refers to hyperlinks that connect web pages, while "Markup Language" describes how tags define page ...

Read More
Showing 251–260 of 8,010 articles
« Prev 1 24 25 26 27 28 801 Next »
Advertisements