What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-12 05:23:07
javascript trap focus
/** *Function should be called on keyPress or something */ function _focusTrapperEvent(e) { if (!(e.key === 'Tab' || e.keyCode === 9)) return; let condition = 'a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([... Add solution