Hey, I tend to forget that all the time but a good method to add a dojo widget programmatically is…

new dijit.form.Button({}).placeAt(dojo.body());

I don’t know about you but I alwayse forget about this thing, so I thought I’d put this on my blog !

Advertisements