Client-side scripting is now more powerful and more standardized than ever before. Server-side scripting, CSS, and Javascript are not in some kind of competition. They are different tools in the developers toolbox. Always use the tools most appropriate for the task at hand - usually you end up using tools in combination. You don’t throw away your screwdriver just because you have really nice wire-cutters.
I can’t think what you can do that you can ONLY do in javascript
Almost anything dynamic on the client-side - that’s alot
I remember trying to code a NS4/6, IE5 drop down menu. It was so irritating.
There’s no way to develop a menu that works the same on all those browsers without using client-side scripting.
If the DOM is not the same across browsers js will only be pushed aside. css sites already advertise some effects as “JavaScript free”.
Do you think all browsers have the same level of CSS support? More browsers have the same level of javascript support than they do CSS support. Browser object models are more standardized than ever before. You manipulate the DOM with CSS. You manipulate the DOM with Javascript. DOM != Javascript
I’ve seen this happen before. Every time something new comes along the purists jump on the ‘this is the only solution’ band-wagon. Why limit yourself? Why work with one hand tied behind your back? Fill your toolbox to the brim and learn how and when to use each tool.
When the DOM started becoming standardized, many js dom enthusiasts started jumping on the dom-only band wagon. They hurt their cause more than they helped it. The current css enthusiasts should learn from that.
Don’t get me wrong - for those who love to play with CSS and push it to the limit - that’s great, I love to play with javascript in the same way. In fact it is the experimenters who discover the potential and limits of new tools - and their discoveries trickle down to the general development community who then use them in more conservative ways. Sometimes I wear my experimenters hat, sometimes I wear my professional web developers hat. I develop very different pages depending on which hat I’m wearing
And so, to you CSS gurus who have discovered wonderful things (which I now use) - Thanks!
And the same goes to the JS gurus - I use your discoveries too.
HAND