1 | <script type="text/javascript"> |
2 | if(window.Notification && Notification.permission !== "denied") { |
3 | Notification.requestPermission(function(status) { // status is "granted", if accepted by user |
4 | var n = new Notification('Notify The Notify', { |
5 | body: 'Here I am!', |
6 | // icon: '/path/to/icon.png' // optional |
7 | }); |
8 | }); |
9 | } |
10 | </script> |
download render html show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008991 |
Snippet name: | Web Notification Test |
Eternal ID of this version: | #1008991/2 |
Text MD5: | 9a364646727763b033260b831a2b9ab5 |
Author: | stefan |
Category: | html |
Type: | HTML |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-22 23:23:30 |
Source code size: | 360 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 489 / 249 |
Version history: | 1 change(s) |
Referenced in: | [show references] |