Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How do I allow the user to use TAB to focus on different buttons? [closed]

$
0
0

On my site, I have some buttons, I'd like it so that when the user presses TAB, the first button is focused, if they press TAB again, the second button is focused, etc.After the button is focused on, I'd like the user to be able to press ENTER to press the button.This behavior doesn't occur on my site, how do I implement it? My buttons are implemented by using divs, and giving them width/height + background color.Here is a part of my site,

<div id="menu"><div class="menubutton" onclick="mapmenu()">Maps</div><div class="menubutton" onclick="showtutorial()">Tutorial</div></div>

I'd like the user to be able to use TAB to navigate the Maps / Tutorial buttons, (I have more buttons on other parts of my site, they are hidden however)


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>