Comment

Aidiakapi

Unless you're doing commercial work that's always a good choice :P.
Nevertheless even in IE this eval wasn't necessary :).

And I also know that this is an old article, but these are still the articles beginners find when they run into this issue, and that's why I made the comment.
Event at my old company where I had co-workers who all finished collage for web development, and they still didn't know how to write proper javascript and had all sorts of hacky scripts like this one in their code.

Parent comment

Peter Bengtsson

It's been many years since I wrote that but I think the point is that the stupid eval was necessary because of IE. Then again, I've stopped caring about it working in IE.