Notification.onerror

Notification.onerror - виникла помилка у сповіщенні

Синтаксис:

obNotification.onerror=function(){…}

Параметри:

obNotification - об'єкт Notification.

Опис:

onerror подія об'єкту Notification яка виникає при виникнені помилки у сповіщенні.

Приклад:

if(window.Notification){ var n=new Notification('яваскрипт.укр',{body:'Notification.onerror'}); n.onerror=function(e){alert('Виникла подія Notification.onerror\n'+e);} }else alert('Ваш браузер не підтримує Notification');