i read this question and this is very useful for me. Chrome desktop notification example? is there any way to customize Notification via HTML markup?? and custom CSS styling for that Notification
var notification = new Notification('Notification title', {
icon: 'http://cdn.sstatic.net/stackexchange/img/logos/so/so-icon.png',
body: "<h2>Hey there! You've been notified!</h2>"+
"<span>this is another element</span>",
});
UPDATE : one more thing as notification body blow show web address how can hide that web address if i want to
You cannot use HTML in the body of the message. But you can use unicode markup in alert body for instance (such as newline, tab and so forth).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With