Create button in form at design time by code

I’m trying to create a button on a form at design time in javascript.by code. But I can’t get it.
Is it possible to create it?

Create component at runtime, no problem…

Thank you

Here’s an old blog post on that topic.