Click here to Skip to main content
15,880,796 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I would like to make a push notification that has a link in it to another part of my website. Here it the code I have so far:
<!DOCTYPE html>
<html>
  <body>
    <script>
 if(window.Notification && Notification.permission !== "denied") {
	Notification.requestPermission(function(status) {
		var n = new Notification('Thanks for visiting invisiblecap.org!', { 
		   "body":"Hello!",
           "image": " shellshockers.png",
           

           
			
			
		}); 
	});
}
  </script>

  </body>
</html>

But I dont know how.

What I have tried:

Please help. I am new to push notifications.
Posted
Updated 13-Jul-20 14:14pm
v3
Comments

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900