Skip to content
Advertisement

Tag: notifications

Notification.requestPermissions – no dialog shown, “automatically blocked” message in Chrome

I’m testing HTML5 notifications on localhost, with SSL. I’ve reset the Chrome settings for the site (by clicking the lock icon in the URL box – “site settings”), and double checked notification setting is set to “Ask (default)”. Now here’s my code: But once the code is run, no permissions popup is displayed, instead I get this lock icon in

How to play a notification sound on websites?

When a certain event occurs, I want my website to play a short notification sound to the user. The sound should not auto-start (instantly) when the website is opened. Instead, it should be played on demand via JavaScript (when that certain event occurs). It is important that this also works on older browsers (IE6 and such). So, basically there are

Advertisement