Skip to content

shookcodes/javascript-tidbits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

javascript-tidbits

This repo contains JS functions that can be easily used in projects.

tabIndexEvent: Selects the active element, and adds an event listener so that the user can push the enter key or spacebar to activate the element. This is useful for elements that are set with tabIndex="0" (e.g. a link or button). Adds accessibility to elements.

This function has lines commented out that you can un-comment to test and see which elements will be active via console.log().

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published