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

Home Forums JavaScript keyboard navigation on website

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #207930

    First of all, I am just grapic designer not webdeveloper so please be patient.

    I am creating my portfolio website and I want to switch between sites with my projects using narrow keys on keyboard.

    To do this I used this js:

    And example looks like this :

    I need that script to be unfailing and reliable.
    Now I have a problem that this isn’t workin on Firefox and Internet Explorer.

    Please tell me how to fix this.

    Thanks! :)


    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.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.