I just stumbled across a piece of sample code that I had written several months ago for a coworker, and I thought that I'd share it with everyoneHere's the scenario: my coworker asked me if it was possible to have different client-side scripts inserted dynamically depending on the type of web browser that is being used.

If the application was written in ASP.NET or some other dynamic language, then it would be trivial to determine the browser type and return the correct HTML <script>...(read more).