There is no standardized way yet. There is a W3C Working Group which
aims to produce an interoperable API, the Web Notification WG[1], who
has been working on a proposal. Mind that it's far from finished and
not supported by any browser so far.
http://dev.w3.org/2006/webapi/WebNotifications/publish/
Kind regards,
Peter Beverloo