
Notificação para Chrome
By:
vanderHobus on
May 9th, 2012 | syntax:
HTML | size: 0.39 KB | hits: 28 | expires: Never
<html>
<head>
</head>
<body>
<div><a href="" onclick="askPermission()">Show()</a></div>
<script>
function askPermission(){
webkitNotifications.requestPermission(testNotification);
}
function testNotification(){
var notification = webkitNotifications.createNotification('image', 'title', 'descripion');
notification.show();
}
</script>
</body>
</html>