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

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -