006 實作小玩具功能:chrome desktop notification

Embed Size (px)

DESCRIPTION

簡單的tutorial:如何實作像Gmail、Google Calendar的Desktop Notification

Text of 006 實作小玩具功能:chrome desktop notification

  • Chrome Desktop NoticationBruce2012/7/13
  • Desktop Notication
  • Require permission user(click)
  • Notication
  • HTML Notication
  • notication
  • notication
  • notication
  • tab tab notication
  • ondisplay event Google ash
  • Notication interface interface Notification : EventTarget { // display methods void show(); void cancel(); // event handler attributes attribute Function ondisplay; attribute Function onerror; attribute Function onclose; attribute Function onclick; }
  • API http://dev.chromium.org/developers/design- documents/desktop-notications/api- specication