Click the buttons below to spew gobs of memory. Crank up task manager (or something similar) to watch you memory disappear!
This will spew memory using a normal circular reference.
This will spew memory using a circular reference via closure.
This will spew memory using the pattern described in MSDN.
This will spew memory on the statically-defined div below. It leaks on IE7 because we remove the element from the DOM, which keeps it from being cleaned up on unload.
(... static leaker element ...)
IE8 does always clean up leaks on unload, as far as I can tell. However, it does not catch all leaks while the page is still loaded. Clicking this button will cause a leak that IE8 cannot clean up until the page is unloaded.