I know that it is possible for an HTML5 Notification to display HTML, however if that HTML included form elements (buttons, selects, ect.), is it at all possible to interact with those inputs via javascript? An example would be to use the notification as a reminder UI, which would have a button to dismiss and one to snooze, and a select drop down to choose how long to snooze for. Is there any way to attach listeners to these elements within the notification's content?
The function createHTMLNotification() requires an URL as argument, so you can put anything you like in the linked HTML page, including JS.
I have not tested this, but there doesn't seem to be any limit.
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