PeopleSoft Community Network
If you want to clear the div and remove all child nodes, you could put:
mydiv = document.getElementById('FirstDiv'); while ( mydiv.firstChild ) mydiv.removeChild( mydiv.firstChild );
You have to remove any event handlers you've set on the node before you remove it, to avoid memory leaks in IE.
© 2025 Created by Maisam Agha.
Powered by