mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 06:08:24 +02:00
23 lines
454 B
HTML
23 lines
454 B
HTML
<html>
|
|
<head>
|
|
<script>
|
|
"use strict";
|
|
|
|
function showNotification() {
|
|
var options = {
|
|
dir: undefined,
|
|
lang: undefined,
|
|
body: "Test body",
|
|
tag: "Test tag",
|
|
icon: undefined,
|
|
};
|
|
return new Notification("Test title", options);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<form id="notificationForm" onsubmit="showNotification();">
|
|
<input type="submit" value="Show notification" id="submit"/>
|
|
</form>
|
|
</body>
|
|
</html>
|