Difference between revisions of "Button Element"

From Level Access Web Labs
Jump to navigation Jump to search
m
m
Line 22: Line 22:
 
<button disabled onclick="javascript:window.alert('You pressed this disabled button!');"> This disabled button! </button>
 
<button disabled onclick="javascript:window.alert('You pressed this disabled button!');"> This disabled button! </button>
 
<br>
 
<br>
<button disabled tabindex="1" onclick="javascript:window.alert('You pressed this disabled focusable button!');"> This disabled focusable button! </button>
+
<p>A disabled button cannot be made focusable with tabindex="0":</p>
 +
<button disabled tabindex="0" onclick="javascript:window.alert('You pressed this disabled button with tabindex="0"!');"> This disabled button with tabindex="0"! </button>
 
<br>
 
<br>
  
 
</html>
 
</html>
 
[[Category:Elements]]
 
[[Category:Elements]]

Revision as of 17:32, 3 March 2022

Welcome to Level Access.

Let the Accessibility Management Platform transform how your organization handles accessibility.

Images button example

Images and text button example

Button with value

Button type reset




A disabled button cannot be made focusable with tabindex="0":