Articles on Trending Technologies

Technical articles with clear explanations and examples

HTML DOM Input Time min Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 207 Views

The HTML DOM Input Time min property sets or returns the value of the min attribute of an HTML time input field. This property defines the minimum time value that a user can enter, providing validation to ensure the selected time meets the required criteria. Syntax Following is the syntax for getting the min property value − inputTimeObject.min Following is the syntax for setting the min property value − inputTimeObject.min = "hh:mm:ss.ms" Property Values The min property accepts a time string in the format "hh:mm:ss.ms". The following table describes ...

Read More

HTML onsubmit Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 492 Views

The HTML onsubmit event attribute is triggered when a form is submitted in an HTML document. This attribute allows you to execute JavaScript code when a user submits a form, enabling form validation, data processing, or other custom actions before the form data is sent to the server. Syntax Following is the syntax for the onsubmit event attribute − form content The script parameter contains JavaScript code or a function call that executes when the form is submitted. The function can return false to prevent the form submission or ...

Read More

How to Close Browser Tabs With a Keyboard Shortcut?

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 4K+ Views

Keyboard shortcuts provide a quick and efficient way to close browser tabs without using the mouse. These shortcuts are universal across all major web browsers and can significantly improve your browsing productivity. Universal Keyboard Shortcuts The following keyboard shortcuts work across all major browsers including Chrome, Firefox, Safari, Edge, and Opera − Windows and Linux To close the current active tab − Ctrl+W To close the entire browser window (all tabs) − Ctrl+Shift+W Mac To close the current active tab − Command+W To close the entire browser window (all ...

Read More

How can I add an image from my PC to my HTML page?

Ayush Singh
Ayush Singh
Updated on 16-Mar-2026 18K+ Views

Adding an image from your PC to an HTML page can be accomplished through several methods, each suitable for different scenarios. The most common approach involves placing the image file in your project directory and referencing it with a relative path. This tutorial covers four practical methods to integrate images from your computer into your HTML pages. Syntax Following is the basic syntax for adding an image in HTML − Where src specifies the image source and alt provides alternative text for accessibility. Methods for Adding Images Following are the four ...

Read More

HTML DOM Input Time name Property

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 154 Views

The HTML DOM Input Time name property allows you to get or set the value of the name attribute for a time input element. The name attribute is used to identify form data when it's submitted to the server and can also be referenced in JavaScript for client-side manipulation. Syntax Following is the syntax to get the name property − inputTimeObject.name Following is the syntax to set the name property − inputTimeObject.name = "string" Return Value The property returns a string that represents the value of the name attribute ...

Read More

HTML onscroll Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 277 Views

The onscroll event attribute in HTML is triggered when an element's content is scrolled using its scrollbar. This event fires continuously as the user scrolls through the element's content, making it useful for creating dynamic scroll-based interactions and animations. The onscroll event can be applied to any HTML element that has scrollable content, including the entire document body, div containers, textarea elements, and other elements with overflow properties set to scroll or auto. Syntax Following is the syntax for the onscroll event attribute − Content Where script is the JavaScript code or function ...

Read More

Creating bottom-positioned icon selects using jQuery Mobile

Jaisshree
Jaisshree
Updated on 16-Mar-2026 352 Views

Bottom-positioned icon selects in jQuery Mobile are enhanced dropdown menus where icons appear below the text in each option. These provide visual cues to users and offer a consistent mobile-optimized interface across different devices and platforms. The jQuery Mobile selectmenu widget transforms standard HTML select elements into enhanced dropdowns with customizable icon positioning, native menu override capabilities, and responsive design features that adapt to various screen sizes. Syntax Following is the basic syntax for creating a bottom-positioned icon select − Option Text The key attributes are − ...

Read More

HTML DOM Input Time Object

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 243 Views

The HTML DOM Input Time Object represents an HTML element with type="time". This object allows users to select a time value and provides JavaScript access to manipulate time input fields programmatically. Syntax Following is the syntax to create an input element with type time − var timeObject = document.createElement("input"); timeObject.type = "time"; To access an existing time input element − var timeObject = document.getElementById("timeId"); Properties The Input Time object supports the following properties − Property Description autocomplete Sets or returns ...

Read More

HTML onsearch Event Attribute

AmitDiwan
AmitDiwan
Updated on 16-Mar-2026 172 Views

The HTML onsearch event attribute is triggered when a user presses the "Enter" key or clicks the search button (×) in an HTML input element with type="search". This event is specifically designed for search input fields and provides a way to execute JavaScript when a search action is performed. Syntax Following is the syntax for the onsearch event attribute − Where script is the JavaScript code or function to execute when the search event occurs. Parameters The onsearch event attribute accepts the following parameter − script − JavaScript code ...

Read More

How to set different background properties in one declaration?

Shabaz Alam
Shabaz Alam
Updated on 16-Mar-2026 403 Views

CSS (Cascading Style Sheets) provides a powerful background shorthand property that allows you to set multiple background properties in a single declaration. This approach is efficient for web developers as it saves time, reduces code length, and improves readability while maintaining full control over background styling. Understanding Background Properties Before using the background shorthand, it's important to understand the individual background properties available in CSS − background-color − Sets the background color of an element using color names, hex values, RGB, or HSL values. background-image − Sets a background image using URLs, linear gradients, or radial ...

Read More
Showing 13071–13080 of 61,297 articles
Advertisements