The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript keyboard navigation on website Reply To: keyboard navigation on website


In Codepen, put your JS in the JS window. Then if you want to use a library, click the gear icon and select the one you want, like jQuery. That’s probably why it isn’t working. Also just looking at your code, it looks like it still won’t work because you’re not passing the event object to the handler function.