Articles on Trending Technologies

Technical articles with clear explanations and examples

How to set whether or not an element is resizable by the user with JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 559 Views

In this tutorial, we will learn to set whether or not an element is resizable by the user with JavaScript. The CSS resize property controls if users can drag element corners to change its size. Web elements are typically fixed in position and size. However, sometimes you need to allow users to resize elements dynamically. The CSS resize property provides this functionality, and JavaScript's DOM manipulation allows us to control this behavior programmatically. Using the Style resize Property The resize property determines whether an element can be resized by the user. Common examples include textarea elements, which ...

Read More

Strange cursor placement in modal when using autofocus in Internet Explorer with HTML

Samual Sam
Samual Sam
Updated on 15-Mar-2026 173 Views

Internet Explorer has a known issue where autofocused elements in fading modals cause strange cursor placement. The cursor may appear in unexpected positions or behave erratically when the modal opens. The Problem When using Bootstrap modals with the autofocus attribute on input elements, IE places the cursor incorrectly during the fade transition. This happens because IE handles CSS transitions and focus events differently than other browsers. Solution 1: Modify CSS Transition Override the default modal transition to use only opacity changes: .modal.fade { transition: opacity .3s linear; } ...

Read More

Usage of font-variant property in CSS

Sreemaha
Sreemaha
Updated on 15-Mar-2026 94 Views

The CSS font-variant property controls typographic variations of text, primarily creating small-caps effects where lowercase letters appear as smaller uppercase letters. Syntax font-variant: normal | small-caps | initial | inherit; Values normal - Default value, displays text normally small-caps - Converts lowercase letters to smaller uppercase letters initial - Sets to default value inherit - Inherits from parent element Example: Small Caps Effect .normal-text { ...

Read More

Difference between Procedural and Declarative Knowledge

Kiran Kumar Panigrahi
Kiran Kumar Panigrahi
Updated on 15-Mar-2026 23K+ Views

We can express the knowledge in various forms to the inference engine in the computer system to solve the problems. There are two important representations of knowledge namely, procedural knowledge and declarative knowledge. The basic difference between procedural and declarative knowledge is that procedural knowledge gives the control information along with the knowledge, whereas declarative knowledge just provides the knowledge but not the control information to implement the knowledge. Read through this article to find out more about procedural knowledge and declarative knowledge and how they are different from each ...

Read More

Passing parameters to callback functions JavaScript

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 544 Views

Callback functions in JavaScript can accept parameters just like regular functions. When passing a callback to another function, you can provide parameters that the callback will use when executed. Basic Callback with Parameters A callback function receives parameters when it's invoked by the calling function: Callback Parameters Run Example function add2(a) { ...

Read More

Searching objects by value in JavaScript

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 249 Views

When working with complex JavaScript objects, you often need to find all keys that contain a specific value. This is particularly useful for nested objects where the same value might appear at multiple levels. Consider this example object with nested structure: const obj = { "name": "Vivek Sharma", "occupation": "Software Engineer", "age": 23, "contacts": [{ "name": "Mukul Sharma", "occupation": "Software Engineer", ...

Read More

Split number into n length array - JavaScript

AmitDiwan
AmitDiwan
Updated on 15-Mar-2026 417 Views

We are required to write a JavaScript function that takes in two numbers say m and n, and returns an array of size n with all the elements of the resulting array adding up to m. Let's write the code for this function − Example Following is the code − const len = 8; const sum = 5; const splitNumber = (len, sum) => { const res = []; for(let i = 0; i < len; i++){ res.push(sum / ...

Read More

For the Hosts Locale how to convert a string to uppercase letters in JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 405 Views

In this tutorial, we will learn how to convert a string to uppercase letters for the host's locale in JavaScript. While using a locale language to write for a website, we might have to convert the sentence from lowercase to uppercase without changing the structure of the string. Using the toLocaleUpperCase() Method In JavaScript, we use the toUpperCase() method as well as the toLocaleUpperCase() to change the letters of a string to uppercase. Although both methods give similar output, the toLocaleUpperCase() is used primarily for local languages and handles locale-specific character mappings correctly. Syntax We ...

Read More

How to set the type of quotation marks for embedded quotations with JavaScript?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 610 Views

In this tutorial, we will learn how to set the type of quotation marks for embedded quotations with JavaScript. The types of quotation marks can be changed using JavaScript. For example, if a sentence is in double quotes(""), it can be modified to single quotes(''). To set the quotation, use the element. With that, add the type of quotation marks with the quotes property. Using the quotes property to set the type of quotation marks In JavaScript, the quotes property is used to set the type of quotation marks for embedded quotations. The quotation marks can ...

Read More

What HTML5 tag should be used for filtering search results.

Smita Kapse
Smita Kapse
Updated on 15-Mar-2026 278 Views

HTML5 provides semantic elements for organizing content, but there's no specific tag exclusively for filtering search results. The best approach is to use a combination of semantic elements with appropriate roles and structure. Recommended Structure for Search Filters Use the element with filter controls inside a for better semantics and accessibility: Search Results Filter Results ...

Read More
Showing 18861–18870 of 61,297 articles
Advertisements