Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1008991 // Web Notification Test

HTML

<script type="text/javascript">
  if(window.Notification && Notification.permission !== "denied") {
  	Notification.requestPermission(function(status) {  // status is "granted", if accepted by user
  		var n = new Notification('Notify The Notify', { 
  			body: 'Here I am!',
  			// icon: '/path/to/icon.png' // optional
  		}); 
  	});
  }
</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: 406 / 185
Version history: 1 change(s)
Referenced in: [show references]