Simple background notification sound - HTML & Javascript

preview_player
Показать описание
Simple background notification sound - HTML & Javascript

If you want to play a notification sound for new alert message, then you need to play the audio without displaying the audio HTML tag. In this tutorial, we have created a button which calls a Javascript function to play the alert sound in the background. So you can use that Javascript code and an audio tag and play the sound wherever it is required.
Рекомендации по теме
Комментарии
Автор

I am on android phone. Is it possible for javascript to play audio element without the notification?

agent-
Автор

Does it permitted by a website to play audio ?

arfiandi
Автор

Can you make this sound for notification using php

chandandubey
visit shbcf.ru