Articles on Trending Technologies

Technical articles with clear explanations and examples

How to Change a Button Text on Click Using LocalStorage in Javascript?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 15-Mar-2026 584 Views

JavaScript provides powerful tools to create interactive web pages. In this article, we'll learn how to change a button's text when clicked and persist that change using localStorage, so the new text remains even after refreshing the page. What is localStorage? The localStorage is a read-only property of the window interface that allows you to store data permanently in the user's browser. Unlike sessionStorage, data stored in localStorage persists even when the browser session ends, making it perfect for remembering user preferences. localStorage Methods localStorage provides two essential methods for data manipulation: Getting Data ...

Read More

How to Change an HTML Element Name Using jQuery?

Aayush Mohan Sinha
Aayush Mohan Sinha
Updated on 15-Mar-2026 1K+ Views

jQuery is a JavaScript library created to make event handling, CSS animation, Ajax, and DOM tree navigation and manipulation easier. In this article we are going to see how we can change the name of an element using jQuery. Algorithm We are going to follow a three−way procedure to change the name of any element using jQuery: Identify and select the element we want to change. Copy all the attributes of the selected element to a temporary object. Create a new element with the ...

Read More

How do I evaluate blockchain implemented in JavaScript?

Kalyan Mishra
Kalyan Mishra
Updated on 15-Mar-2026 173 Views

Blockchain is a chain of blocks that contains information. In 2009, this technology was later adapted by Satoshi Nakamoto to create the digital cryptocurrency Bitcoin. This technology is completely open to anyone who wants to develop or analyze it. Blockchain has a feature that makes it very complex to make changes once data has been recorded in a block of the chain. Here are the key terms used in blockchain programming: Block − Contains information like data, hash value, and previous block hash value. Data − Information stored in the block (for cryptocurrency: transaction details like ...

Read More

What is the best way to learn Vanilla JavaScript?

Kalyan Mishra
Kalyan Mishra
Updated on 15-Mar-2026 2K+ Views

Learning Vanilla JavaScript is essential for building a solid foundation in web development. Vanilla JavaScript refers to pure JavaScript without any frameworks or libraries like React, Angular, or Vue.js. This approach helps you understand the core language mechanics before diving into frameworks. Vanilla JavaScript vs JavaScript Frameworks Vanilla JavaScript is the core JavaScript language (ES5/ES6/ES7+) without external libraries. While frameworks like React or Angular provide pre-built solutions, vanilla JavaScript gives you complete control and deeper understanding of how things work under the hood. JavaScript is an object-oriented, interpreted scripting language that runs in browsers and adds interactivity ...

Read More

Difference Between textContent and innerHTML

Pradeep Kumar
Pradeep Kumar
Updated on 15-Mar-2026 678 Views

There are various methods used in web development to change the text or add additional elements to an HTML element's content. textContent and innerHTML are two frequently used properties for changing an HTML element's content. Although these two properties might appear to be identical, they have distinct behaviors and applications. The textContent property sets or retrieves the text content of an element and all of its descendants without any HTML tags. In contrast, the innerHTML property sets or retrieves an element's HTML content, including all HTML tags and their associated attributes. By adding new elements or modifying existing ones, ...

Read More

Why JavaScript is Used in Blockchain?

Kalyan Mishra
Kalyan Mishra
Updated on 15-Mar-2026 383 Views

JavaScript has become a prominent language in blockchain development due to its versatility, widespread adoption, and powerful ecosystem. While it may not be the most precise language in terms of type safety, its practical advantages make it an excellent choice for building blockchain applications. The primary reason JavaScript excels in blockchain development is its ability to run on both client-side and server-side environments. This full-stack capability makes it ideal for building decentralized applications (dApps) that require seamless integration between front-end interfaces and back-end blockchain interactions. Key Advantages of JavaScript in Blockchain Wide Developer Community JavaScript is one ...

Read More

How to prevent overriding using Immediately Invoked Function Expression in JavaScript?

Mohit Panchasara
Mohit Panchasara
Updated on 15-Mar-2026 516 Views

JavaScript allows developers to add functionality and behaviors to the web page. Developers require to create multiple functions and variables to add functionality to different parts of the web page. While developing real-time applications, multiple developers work on the same project. So, avoiding the unintentional overriding of functions and variables while collaborating with multiple developers is necessary. In this tutorial, we will learn to prevent overriding using immediately invoked function expressions. Problem of Overriding For example, two colleagues are working on the same project, and both have defined the printAge() function inside the code and merged the ...

Read More

How to remove fake JavaScript pop-up messages and warnings?

Kalyan Mishra
Kalyan Mishra
Updated on 15-Mar-2026 586 Views

Fake JavaScript pop-up messages and warnings are typically used for malicious purposes, such as tricking users into downloading malware or providing sensitive information. These fake popups and messages often appear to be legitimate alerts from trusted sources, such as a user's operating system, web browser, or security software, in order to deceive the user into taking a particular action. Clicking popup can forward you to malicious websites. There are several types of fake pop-ups that you may encounter while browsing the internet. Here are some of the most common types: Types of Fake Pop-ups Fake Virus Warnings ...

Read More

Explosion Animation in Canvas

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 2K+ Views

In this tutorial, we will learn to create an explosion animation effect using canvas in HTML. Canvas provides a powerful way to draw dynamic graphics and animations on web pages. We'll explore two different approaches: a basic particle explosion and an interactive mouse-triggered explosion effect. Basic Particle Explosion This creates an explosion of 50 randomly colored particles that originate from the center of the canvas and move in random directions. How It Works The animation works by creating particle objects with position, velocity, and color properties. Each frame, we update particle positions and redraw them ...

Read More

How to use a variable for a key in a JavaScript object literal?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 12K+ Views

In JavaScript, you can use variables as object keys using bracket notation or computed property names. This is useful when working with dynamic data, API responses, or when key names are determined at runtime. Using Bracket Notation (After Object Creation) The most common approach is to create the object first, then add properties using bracket notation: Using variables as key of JavaScript object let content = document.getElementById("content"); ...

Read More
Showing 14141–14150 of 61,297 articles
Advertisements