Difference between revisions of "Tabindex only"

From Level Access Web Labs
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<script>
 
<script>
 
function add() {
 
function add() {
   document.getElementById("d1").addEventListener("click",function() { alert('test')});
+
   document.getElementById("d1").addEventListener("mousedown",function() { alert('test')});
 
}
 
}
 
</script>
 
</script>
 
<body>
 
<body>
<div id="d1" tabindex="10"> This is some item in the tab order </div>
+
<div id="d1" tabindex="0"> This is some item in the tab order <a href="#">test</a></div>
 
<button onclick="add();"> add </button>
 
<button onclick="add();"> add </button>
  
 
</body>
 
</body>
 
</html>
 
</html>

Latest revision as of 02:42, 27 February 2016

This is some item in the tab order test