I want the chrome notify me on fixed time interval.
And I try to write this code, but only show one time.
var notification = webkitNotifications.createNotification(
'icon.png',
'Free your eyes',
'Please take a break'
);
function showNotify()
{
notification.show();
setTimeout("showNotify()", 2000);
}
showNotify();
Use
setInterval()to run the code periodically.Try something like this: