The correct way to notify a user of access should be in accordance with WAI-ARIA (an affordable, rich Internet application). Now documents are only a technical part of your implementation - as with all Internet technologies, its implementation among screen readers and other accessibility tools varies widely and is difficult to install without extensive testing, but itโs certainly best to work with this moment.
Specifications require that this type of message be marked role='alert' and their dialog boxes with the role='alertdialog' attribute. It indicates that warnings
Communication with important and usually time sensitive information.
which would certainly fit the bill. Now Iโm not sure about your concern with the screen buffer problem, but as far as I read this topic, readers on the screen who use the WAI-ARIA specifications should constantly scan the page for new attributes and elements, as tutorials like this , you can even add the alert attribute to the elements already present on the page, so I do not believe that your problem should be a problem for modern screen readers.
source share