IE innerHTML Memory Leak Demo

Upon clicking the "Start Leak" button, a script will execute repeatedly which creates a new <div> element in memory, sets its innerHTML to a string of 2000 <a> tags with onclick events wired up ('<a onclick = "test()">Test Link</a>'), and then adds that <div> to the page.

Letting this script run for about 60 seconds, and using Perfmon to monitor memory consumption, you should notice a significant increase in the amount of memory consumed. To see the same script logic that doesn't leak memory, view the No Leak Page.