While trying to find an "easy" solution to duplicating my browser's "back" button using PHP, someone here turned me onto JavaScript (JS). Using the JS history object, this is a trivial task.
I am now coming to the conclusion that client side scripting, such as JS provides, can be even more powerful than the server side scripting that PHP offers. But, and that's a big but, I see I still the need PHP for server side operations like e-mail, file I/O, DB support, etc. So I am going to happily marry these two technologies together for what I hope is a winning web site.
My question is, for you JS folks, does JS allow for "modularizing" common sets of functions and then including the file that contains them wherever needed? As an old C++ programmer, I like this feature of PHP very much. But I don't know if JS supports this approach (I'm new at JS).
All comments are welcomed.
And please, I don't mean to start a "holy" war here between JS and PHP :-) I love my <? PHP ?>