How can i create a child table inside a doctype by client or server script?

Is there any way to create a child table by server or client script?

What is your problem statement?