Forms in Webkit HTML Notifications? Forms in Webkit HTML Notifications? google-chrome google-chrome

Forms in Webkit HTML Notifications?


You can get around this in a pretty simple way. You can create a div that serves as your input box, and allow the content of the div to be edited (look here). Then you can use a button or another div as the submit button, then handle the form submit with javascript.

<div contenteditable="true" id="inputBox"></div><div id="submitButton" onclick="submitform();">Submit</div>

While I agree that desktop notifications are probably not meant to contain forms, I have a case where having a form in the notification is actually more convenient. I hope this helps.


Notifications are not meant for interactivity. They are meant to notify.

If you want to have interactivity, use an Action instead.