onclick inside notification code example
Example: javascript click event notifications
var message = new Notification("RandomString");
message.onclick = function(){
alert("Random Message")
};
var message = new Notification("RandomString");
message.onclick = function(){
alert("Random Message")
};