Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
JavaScript
12.2K+ articles
HTML
5.8K+ articles
JavaScript-Questions
2.1K+ articles
Java Programs
2.0K+ articles
HTML-DOM
1.5K+ articles
HTML-Questions
1.1K+ articles
HTML5
371+ articles
JavaScript-Events
87 posts
Recent Articles
Popular Articles
How to implement a function “getScript” that fetches/executes a JavaScript file in browser ?
Last Updated: 17 May 2023
In this article, we will learn how to fetch a JavaScript file(.js) and load it in a web browser dynamically by using JavaScript with HTML. We need a web browser i.e., Chro...
read more
Technical Scripter
JavaScript
Web Technologies
Picked
Technical Scripter 2020
HTML-Questions
JavaScript-Questions
JavaScript-Events
What is the best way to add an event in JavaScript ?
Last Updated: 25 July 2024
Javascript has events to provide a dynamic interface to a webpage. These events are hooked to elements in the Document Object Model(DOM).There are three ways to assign an ...
read more
JavaScript
Web Technologies
Picked
HTML
JavaScript-Methods
JavaScript-Questions
JavaScript-Events
How to write a program that will return true if the bottom of the page is visible in JavaScript ?
Last Updated: 21 December 2022
The task is to return true if the bottom of the page is visible. We can achieve this by simply using the height of the window and the height of the scrolled window.Approac...
read more
JavaScript
Web Technologies
Picked
JavaScript-Methods
JavaScript-Questions
JavaScript-Events
Difference between body.onload() and document.ready() function
Last Updated: 01 July 2021
The body.onload() event will be called once the DOM and all associated resources like images got loaded. Basically, onload() will be called when the page has been fully lo...
read more
Difference Between
Web Technologies
Picked
JQuery
JavaScript-Questions
JavaScript-Events
Web Technologies - Difference Between
Fullscreen API using JavaScript
Last Updated: 14 July 2021
The window supports the full-screen interface by using web API. We can activate or deactivate the full-screen mode of the screen. The fullscreen API provides methods to pr...
read more
Java Programs
JavaScript
Web Technologies
HTML
HTML-DOM
JavaScript-Questions
JavaScript-Events
Create a Quiz Application Using JavaScript
Last Updated: 19 April 2025
In this article, we will learn how to create a quiz application using JavaScript. The quiz application will contain questions followed by a total score shown at the end of...
read more
JavaScript
Web Technologies
Picked
JavaScript-Events
JavaScript-Projects
How to Handle JavaScript Events in HTML ?
Last Updated: 12 August 2021
An Event is an action or occurrence recognized by the software. It can be triggered by the user or the system. Mostly Events are used on buttons, hyperlinks, hovers, page ...
read more
JavaScript
Web Technologies
HTML
HTML5
HTML-DOM
HTML-Questions
JavaScript-Questions
JavaScript-Events
What is Event bubbling and Event Capturing in JavaScript ?
Last Updated: 14 September 2021
Event bubbling and event capturing are the two interesting concepts of JavaScript. Before diving deep into these fascinating concepts, let us first know about what an even...
read more
JavaScript
Web Technologies
Picked
JavaScript-Events
JavaScript-Projects
How to set the cursor to wait in JavaScript ?
Last Updated: 18 August 2021
In JavaScript, we could easily set the cursor to wait. In this article, we will see how we are going to do this. Actually, it's quite an easy task, there is a CSS cursor p...
read more
JavaScript
Web Technologies
Picked
JavaScript-Questions
JavaScript-Events
How to detect caps lock key turned on or not ?
Last Updated: 30 September 2021
While working with some kind of web application we often need to know various information about user interaction to execute our functionality accordingly i.e. we use APIs ...
read more
JavaScript
Web Technologies
Picked
HTML
HTML-Questions
JavaScript-Questions
JavaScript-Events
Which event occurs when a value is added to an input box in JavaScript?
Last Updated: 05 January 2023
JavaScript has events to provide a dynamic interface to a webpage. These events are hooked to elements in the Document Object Model (DOM). These events by default use bubb...
read more
JavaScript
Web Technologies
Picked
Algo Geek
JavaScript-Questions
JavaScript-Events
Which event will be triggered when element get focused in HTML ?
Last Updated: 22 July 2024
When the user interacts with the HTML elements, HTML has the ability to let events trigger actions in a browser, such as a user clicks on an element, focus in or focus out...
read more
Picked
HTML
HTML-Questions
JavaScript-Events
Pointer Events in Javascript DOM
Last Updated: 26 July 2024
Pointer events are a set of DOM (Document Object Model) events that provide a unified way of handling inputs from a variety of devices, such as touchscreens, mouse, and pe...
read more
Technical Scripter
JavaScript
Web Technologies
Picked
Technical Scripter 2022
JavaScript-Questions
JavaScript-Events
How to prevent the default action of an event in JavaScript ?
Last Updated: 28 April 2025
The term "default action" usually refers to the default behavior or action that occurs when an event is triggered. Sometimes, it becomes necessary to prevent a default act...
read more
JavaScript
Web Technologies
JavaScript-Questions
JavaScript-Events
Infinite Scroll using JavaScript Intersection Observer API
Last Updated: 27 May 2024
The API observes the changes on the page and checks if our target element intersects with the viewport or some other element known as the root element or not. As soon as t...
read more
JavaScript
Web Technologies
Picked
JavaScript-Events
1
2
3
4
5
6
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !