Originally Posted by rnd me
is there an echo in here? hehe
that's the same routine as in the OP...
Yes - except that I didn't recognise it until you pointed it out just now as you had abbreviated the portion of the code that you'd posted. Also when I replied to the first post I was more interested in the end result than I was in some of the alternatives you gave earlier. By the time I realised that your solution only works in ECMAScript 3 I had forgotten about the alternatives you'd posted.
I guess that what my search ended up finding is an echo of one of the alternatives that you posted means that alternative is probably the best that can be done with ECMAScript 5.
Now that IE9 has partly dropped support for the proprietary caller method it probably will not be long before the other browsers that support it do the same - particularly since none of them support it in ECMAScript 5.