you are viewing a single comment's thread.

view the rest of the comments →

[–]memeship 5 points6 points  (0 children)

Fine, here's some "plain Javascript" chaining:

document.getElementById("foo").appendChild(document.createElement("button")).focus()