Javascript Browser Sniffer

Continuing the train of thought from an earlier posting, here’s a reliable and extensively populated Javascript browser sniffer: http://jsbrwsniff.sourceforge.net/index.html. However, it doesn’t redirect visitors, but one fluent in JS could insert this into the code.

I’m still working on the SH site to redirect mobile visitors to the mobile site. Referencing the same earlier posting mentioned above, I’m going to combine the user agent strings of the .asp and .php scripts into one PHP file executed when the page loads via a <script> tag in the head.

I’ll post developments here as I find time to make them.

Javascript, though, is another option for web developers looking to redirect visitors to a sub- or mobile-site based on platform and/or browser. This is what Yahoo! uses for its messenger page. (Here’s the .js file). I’m just enchanted by the cleanliness and organization of PHP vis-a-vis the crazed relationships of a JS file. Of course, server-side is usually going to be cleaner than client-side anyway.

I’ll post a comparison of the Yahoo! JS file and the Studio Hyperset PHP when the latter’s ready.

However, as the French would say, it’s largely a matter of “à chacun son goût.”

Exit mobile version