I created a web page that makes an Ajax call every second. In Internet Explorer 7, it leaks memory badly (20 MB in about 15 minutes).
The program is very simple. It
eval() will eat up memory for sure (eval happens when passing a string to setTimeout to evaluate), don't use it in testing:
setTimeout('testJunk()',1000);
should be:
setTimeout(testJunk, 1000);
Also a better use overall would be setInterval() for a repeated operation like you want, try this:
setInterval(testJunk, 1000);