In JavaScript what is the right way to kill a DOM element? -


i know can set it's style "display: none"

however, hides it.

i want kill dom element , of it's children.

the context i'm building desktop-like gui system (for learning purposes) inside of dom, , when "window" closed, want div , it's children removed.

thus, in javascript, how tell gc "hey, rid of dom element, it's no longer needed"?

thanks!

what removechild ?

see http://dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/ more information


Comments

Popular posts from this blog

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -