need javascript? that way lies madness

You can get some in my javascript library—once again the most popular content hosted on this server. Funny thing is, every time somebody asks me a question about one of my scripts, it invariably leads into discussion of problems in different browsers, issues with people disabling scripting, and of course, is it all accessible. And that always ends with me saying “you probably shouldn’t use javascript, that way lies madness.”

Which isn’t true at all of course. Javascript can do some neat things. But getting scripts to work in “browsers”—that wonderful word which too simply sumarises the quagmire of a platform/environment to which we web developers must work—well, that can be fun too. If you like debugging. Thankfully I do.

>Sometimes. Still, I feel sorry for our intern at work, who is working hard on a script to print multiple pages at once (simply because our policies are broken up into multiple files and people don’t know how to print them properly themselves). Find all the links on the page. Only keep the links that are to files in the same directory. Now for each one, open it in a new window and print it out. See? Easy, useful, javascript. hahaha. Madness! 🙂