I have found a memory leak in the implementation of JavaScript in IE 6.0 (it is in 5.5 and 5.0 also).
It is caused by the array objects toString() function.
Refreshing a page with the attached code in it will cause the amount of memory consumed by IE to increase and leaving the page does not recover the lost memory.
I am using the loop at the end to exagerate the problem so it is more obvious.