window.webkitNotifications.requestPermission();

statue = window.webkitNotifications.checkPermission();

var notification =window.webkitNotifications.createNotification("[imgurl]","Title","Body");

notification.show();  //控制这个右下角的提醒show,可以加事件触发

注:目前支持的只有谷歌新版本

04-14 21:33