Front End Technology Articles

Page 119 of 652

Web Assembly (Wasm) with JavaScript

Mukul Latiyan
Mukul Latiyan
Updated on 15-Mar-2026 625 Views

Have you ever wondered if it's possible to run high-performance applications on the web without sacrificing the portability and security that JavaScript provides? Well, wonder no more! With the introduction of WebAssembly (Wasm), it is now possible to bring native-like performance to web applications while still leveraging the power of JavaScript. In this article, we will explore the basics of WebAssembly and how it can be used alongside JavaScript to unlock a new world of possibilities. What is WebAssembly (Wasm)? WebAssembly, often referred to as Wasm, is a binary instruction format designed specifically for web browsers. It is ...

Read More

Web Components: Building Custom Elements with JavaScript

Mukul Latiyan
Mukul Latiyan
Updated on 15-Mar-2026 609 Views

Web components are a powerful tool for building reusable and encapsulated UI elements in web applications. They allow developers to create custom elements with their own markup, style, and behavior, which can be easily reused across different projects and shared with other developers. In this article, we will explore the fundamentals of web components and learn how to build custom elements using JavaScript. What are Web Components? Web components are a set of web platform APIs that allow you to create reusable, encapsulated, and composable UI elements. They consist of three main specifications: Custom Elements, Shadow DOM, and ...

Read More

How to display errors without an alert box using JavaScript?

Dishebh Bhayana
Dishebh Bhayana
Updated on 15-Mar-2026 2K+ Views

In this article, we will learn how to display errors inline on a page without using alert boxes in JavaScript. We'll explore different DOM methods including innerHTML, textContent, and CSS styling techniques. While alert boxes can be useful for displaying errors to users, they can be disruptive and interrupt the user experience. A more elegant solution is to display errors inline on the page, providing immediate feedback without blocking user interaction. Let's understand how to achieve this with several practical approaches. Using innerHTML Property The innerHTML property allows us to insert HTML content into an element, ...

Read More

How to dynamically insert id into a table element using JavaScript?

Dishebh Bhayana
Dishebh Bhayana
Updated on 15-Mar-2026 2K+ Views

In this article, we will learn how to dynamically insert IDs into table elements using JavaScript with the help of various DOM manipulation techniques. In web development, dynamically inserting an ID into an HTML table element can be a useful technique when we need to uniquely identify and manipulate specific rows or cells. By assigning IDs to table elements programmatically, we gain more control and flexibility in accessing and modifying the table's content. Let's understand how to implement this with the help of some examples. Method 1: Using the id Property In this example, we generate ...

Read More

File Type Validation while Uploading it using JavaScript

Nikhilesh Aleti
Nikhilesh Aleti
Updated on 15-Mar-2026 7K+ Views

File type validation is essential for web applications that handle file uploads. It ensures users only upload acceptable file formats, preventing security issues and maintaining data consistency. JavaScript provides built-in properties to check file types before submission. This validation process helps platforms like job portals, social media sites, and document management systems control what file types users can upload, such as restricting uploads to PDFs for resumes or images for profile pictures. How File Type Validation Works When a user selects a file, the browser exposes file information through the File API. The key property is file.type, ...

Read More

How to Highlight the Searched String Result using JavaScript?

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 15-Mar-2026 5K+ Views

Searching for specific content within a large body of text is a common task in web applications. However, simply displaying the search results without any visual indication can make it challenging for users to identify and focus on the relevant information. That's where the need for highlighting the searched string arises. By dynamically highlighting the matching portions of the text, we can improve the user experience and make it easier for users to locate the desired content. In this article, we will explore different methods to highlight the searched string using JavaScript. We'll cover various techniques that range from ...

Read More

How to hide the table header using JavaScript?

Mrudgandha Kulkarni
Mrudgandha Kulkarni
Updated on 15-Mar-2026 3K+ Views

Tables are a common element in web development, used to organize and present data in a structured format. While table headers provide valuable context and help users understand the content within a table, there are situations where hiding the table header becomes necessary. Whether it's to enhance the visual design, improve user experience, or accommodate specific requirements, knowing how to hide the table header using JavaScript can be a useful skill for web developers. In this article, we will explore different methods to hide the table header using JavaScript. We will cover techniques that leverage CSS, manipulate the Document ...

Read More

Create a Hoverable Side Navigation with HTML, CSS and JavaScript

Nikhilesh Aleti
Nikhilesh Aleti
Updated on 15-Mar-2026 481 Views

A navigation bar is part of a webpage that contains links to appropriate sections/pages in a website, helping users browse fast and effortlessly. The navigation bar can be implemented in many ways, but the traditional approaches are horizontal and vertical bars. In this article, we'll design a vertical side navigation bar with hoverable buttons using HTML, CSS, and JavaScript. The navigation slides out when hovered and displays content when clicked. Project Structure Overview Our hoverable side navigation consists of three main components: HTML - Structure for navigation links and content sections ...

Read More

How to Add onclick in a Button using javascript?

Eesha Gandhi
Eesha Gandhi
Updated on 15-Mar-2026 12K+ Views

The onclick event generally occurs when the user clicks on an element. It enables the programmer to run a JavaScript function when an element is clicked. This event can be used to validate a form, display warning messages, and much more. This event can be added dynamically to any element using JavaScript. Except for , , , , , , , , , , and , it supports all HTML elements. In HTML, we can use the onclick attribute and associate it with a JavaScript function. For greater flexibility, we can also use JavaScript's addEventListener() method and pass ...

Read More

How to Set Default HTML Form Focus Without JavaScript?

Eesha Gandhi
Eesha Gandhi
Updated on 15-Mar-2026 915 Views

A HTML form is a section of a document that includes controls like text fields, password fields, checkboxes, radio buttons, a submit button, menus, and so on. It allows the user to enter any data like name, email address, password, phone number, and so on that will be sent to the server for processing. HTML forms are required if we want to collect information from site visitors. The syntax for creating a form is given below. --form elements— Example: Form Without Focus Here is an example showing a simple form ...

Read More
Showing 1181–1190 of 6,519 articles
« Prev 1 117 118 119 120 121 652 Next »
Advertisements