I've written a javascript alert() message on a Salesforce page which appears on page load. 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. 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? Is this a bug with NVDA/Chrome?
I'm using the latest version of Chrome: 62.0.3202.94. And NVDA: 2017.4