Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/idurar/vanilla-js-trapping-tab-key-focus

Lightweight vanilla js Trapping tab key focus function within the Element (just 1kb) , No dependencies
https://github.com/idurar/vanilla-js-trapping-tab-key-focus

element focus key tab trap vanilla-javascript vanilla-js within

Last synced: about 1 month ago
JSON representation

Lightweight vanilla js Trapping tab key focus function within the Element (just 1kb) , No dependencies

Awesome Lists containing this project

README

        

# Lightweight vanilla js Trapping tab key focus inside Element (just 2kb)

Lightweight vanilla js Trapping tab key focus function within the Element (just 1kb) , No dependencies

check demo here : https://idurar.github.io/vanilla-js-trapping-tab-key-focus/

```markdown
### javascript code to open Modal

modal.open('idContent'); // to open Modal with wanted html content

// modal.close(); // to close Modal

### HTML code to insert in Modal




```