How destroy embedded control

How I destroy embedded control on WebListBox with java script.

What is the reason that WebListBox.Close is not the solution in your case?

In some cicrumstances esp. when using custom controls in combination with WebDialogs I need to use self.close my dialogs and destroy my objects explicitly. Do not ask me why, maybe this is same issue?

I believe Alexis learned in another thread how to embed container controls in WebListBox in JavaScript, and now he needs to remove them. Except when a CC has been embedded, Xojo is unable to close it.

oh ok…

Yes Michel