From a json object i'm getting three values like title, price and url. By using chrome rich notifications i'm able to display the values here is the example of what i'm showing. But instead of chrome.notification when I'm opening a product in amazon i want to show price's of this product like this. Here is the code i had used for chrome.notifications
function notifyMe(title,price) {
if (!Notification) {
alert('Desktop notifications not available in your browser. Try Chromium.');
return;
}
var notification = new Notification(title, {
icon: "../images/fev.png",
body: price,
});
notification.onclick = function () {
window.open("https://www.google.com/");
};
}
What should i do to get output like the one i showed(not like chrome.notification)