Skip to content

sayalibankar2002/js-project-using-DOM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

querySelectorAll()

If you want to find all HTML elements that match a specified CSS selector (id, class names, types, attributes, values of attributes, etc), use the querySelectorAll() method.

Usage/Examples

import Component from 'my-project'

const x = document.querySelectorAll("p.intro");

addEventListner()

The addEventListener() method attaches an event handler to the specified element.

Usage/Example

element.addEventListener("click", myFunction);

function myFunction() {
  alert ("Hello World!");
}

About

GitHub Desktop tutorial repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published