ASP.NET MVC - How to detect if user is using a screen reader

后端 未结 3 521
名媛妹妹
名媛妹妹 2021-01-22 15:52

So I\'m currently trying to check if a user is using a screen reader on our site. The reason I would like to check if they are is because our site provides a training module in

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-22 16:32

    It's not possible to detect whether a user is running a screenreader. If it were possible, it would open a door for unscrupulous types to home in on people with disabilities, or for a totally different "accessible" browser experience to be delivered, rather than building interfaces that are inclusive by design.

    You could create a button that's placed off-screen but still in the tab order, and make it visible when it receives focus. Then blind users could find it, and sighted keyboard users wouldn't think something strange had happened when the button received focus.

提交回复
热议问题