Yes, you can show, check this code as a reference.
manifest.json
Registered background page and permissions needed for notifications
{
"name": "Notification with Link",
"description": "http://stackoverflow.com/questions/14731996/how-to-include-a-link-in-a-webkit-notification",
"manifest_version": 2,
"version": "1",
"permissions": [
"notifications"
],
"background": {
"scripts": [
"background.js"
]
}
}
background.js
Created a HTML Notification
// create a HTML notification:
var notification = webkitNotifications.createHTMLNotification(
'notification.html' // html url - can be relative
);
// Then show the notification.
notification.show();
notification.html
Added script tag to avoid CSP
<html>
<head>
<script src="notification.js"></script>
</head>
<body>
<a id="click" href="http://www.google.co.in/">Click Me</a>
</body>
</html>
notification.js
Just pointed a notification for click, can be used for extending any functionality.
document.addEventListener("DOMContentLoaded", function () {
document.getElementById("click").addEventListener("click", function () {
console.log("Clicked");
});
});
References