Reputation:
Trying to create a HTML webkitNotifications with a textbox in it that has the focus on it set once the notification has been created.
Things that don't seem to work
window.focus() then document.getElementById("textbox").focus()
also autofocus="autofocus" does not work as well
Upvotes: 1
Views: 359
Reputation: 16924
You can't have form elements like textareas, inputs, select, etc. in a webkitNotification. The elements will show up in the notification but the user will not be able to interact with them. I haven't been able to find any documentation on this but I'm guessing that it is due to the idea that notifications should be kept simple.
Upvotes: 1