After doing something I run this code:
var notification = webkitNotifications.createNotification( \'icon.png\', // icon url - can be relative \'Done!\'
You'll be able to call window.close() from inside the notification's HTML page. That will close the notification.
window.close()
To close at a certain time, calling something like setTimeout( function () { window.close(); }, timeInMicroseconds); should be effective.
setTimeout( function () { window.close(); }, timeInMicroseconds);