Customize name child_table

How can I get and display a child table name using JavaScript? What if I just wanted to display the name differently for display only without changing the name? Thank you for your help