简体   繁体   English

NVDA屏幕阅读器无法读取Chrome中的Javascript Alert()弹出窗口

[英]NVDA Screen Reader not reading Javascript Alert() Popup in Chrome

I've written a javascript alert() message on a Salesforce page which appears on page load. 我已经在页面加载时显示的Salesforce页面上编写了javascript alert()消息。 The code simply goes along the lines of: 该代码仅遵循以下内容:

<script type="text/javascript">
   window.onready = function() {
   alert('message for user goes here.');
}
<script>

The message appears on page load, however, it isn't being picked up by the NVDA screen reader. 该消息出现在页面加载时,但是,NVDA屏幕阅读器未拾取该消息。 It just reads "Unknown" (I can't even tab into it), which isn't very helpful. 它只是显示“未知”(我什至无法进入它),这不是很有帮助。

How can you get the screen reader to focus/read a javascript alert message? 如何使屏幕阅读器集中/阅读JavaScript警报消息? Is this a bug with NVDA/Chrome? 这是NVDA / Chrome的错误吗?

I'm using the latest version of Chrome: 62.0.3202.94. 我正在使用最新版本的Chrome:62.0.3202.94。 And NVDA: 2017.4 和NVDA:2017.4

This is a Chrome bug, and a known one. 这是一个Chrome错误,也是一个已知错误。 As Monorail has very poor search functions (at least, in my experience), I couldn't find the bug by number, but believe me, it does exist. 由于Monorail的搜索功能非常差(至少以我的经验),我无法通过数字找到该bug,但相信我,它确实存在。 Per this issue, alert() , confirm() and onBeforeUnload() dialogs are not read in Chrome. 每这一问题, alert() confirm()onBeforeUnload()对话框未在Chrome阅读。 JAWS copes with it better than NVDA though: if you Alt+Tab and then Alt+Tab back to Chrome, you'll be getting the ability to tab around the dialog. 但是,JAWS比NVDA更好地解决了它:如果您先Alt + Tab,然后再Alt + Tab回到Chrome,您将能够在对话框中切换。

I confirmed this issue fixed in Chrome Canary versions 64, so try this or just wait a bit. 我确认此问题已在Chrome Canary 64版中修复,因此请尝试此操作或稍等片刻。 Yesterday or today I got Chrome updated, now it is Google Chrome Version 63.0.3239.84. 昨天或今天,我更新了Chrome浏览器,现在它是Google Chrome浏览器版本63.0.3239.84。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM