First of all, please don't be offended but what you are doing is poor design, at least, accessibility-wise.
A button inside a heading (not a header, BTW, in HTML 5 there is a separate <header>
element which is a quite different thing from <h3>
you use here) is a bad idea. Really.
But anyway, if you want JAWS to treat your span
as a button, either:
- Use a native
<button>
element, or
- Use
role="button"
on your span
, otherwise JAWS wouldn't know in any way that this particular span
should be treated as a button. But please prefer the first method unless you absolutely have to use a span
here. And please, pull it out of your h3
, this will be far more accessible.