Created
July 7, 2017 07:47
-
-
Save c4software/08f19a977b2ddbbc76ac86760b83a456 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementsById("monBoutton").onclick = function () { | |
Notification.requestPermission(function (p) { | |
var n = new Notification("Univ-Angers", { | |
icon: "http://www.univ-angers.fr/skins/UnivAngers/resources/img/logo-angers.png", | |
body: "Test de notification" | |
}); | |
console.log(n); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Après une fois que l’utilisateur a accepté :