-1

Is there any way how can I use number as accesskey shortcut? For example when I have some code like this:

<a href="https://www.example.com/?p=25" accesskey="25">link #25</a>

When I hit alt + 2 + 5 on my keyboard while using Chrome, it will open link https://www.example.com/?p=25. There can be 100 ~ 1000 such shortcuted links on the page.

Is it possible? Some jQuery lib.. whatever..

Jasom Dotnet
  • 1,225
  • 12
  • 17

1 Answers1

1

It is possible trough code. I don't think accessKey permits such combination.

Bun in javascript onkeypress event you can check if ALT key is pressed and you can programmatically store the combination and react if it is the one you desire.

bluehipy
  • 2,254
  • 1
  • 13
  • 19
  • 1
    _I don't think accessKey permits such combination_ Yes you're right, it does not pertmit it. > _onkeypress event_ I didn't realizet it can be such simple, tnks – Jasom Dotnet Mar 12 '17 at 11:57