In consideration of persons with hearing disabilities, when using warning sounds, display the same content within that page. In consideration of persons with visual disabilities, add an audio form of the information and/or enable voiceover in audio browsers. Particularly try to avoid displaying dialog boxes using JavaScript. Some audio browsers cannot read aloud the text displayed with JavaScript.
Example and Implementation