From 338a806bd13aa2578256a0a7b2270759fe1443ec Mon Sep 17 00:00:00 2001 From: Sean Elliott Date: Mon, 23 Jul 2018 17:24:25 +1000 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b003960..2692e0c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # a11y-trap-tabs Vanilla JavaScript function to trap the tab keypress inside an designated element. + +## Example +https://codepen.io/seanus1138/full/ZjeaoJ/ + ## How to use Mark up your html how ever you would like, just make sure the target element that you will be passing to the `trapTabKey()` function wraps all the elements you want to trap focus to. @@ -7,7 +11,7 @@ Review the code below: ### HTML ```html -
+