Chapter 3. GIVING THE BROWSERS WHAT THEY WANT
Much to the dismay of web developers everywhere, different browsers implement JavaScript and HTML in slightly different ways. Wouldn't it be great if you could serve each browser exactly the content it could understand?
Fortunately, you can use JavaScript to determine which browser a visitor is using. You can then use that information to deliver content suitable for that specific browser, either by redirecting the visitor to a page containing content especially tailored for that browser or by writing your JavaScripts so that the same page does different things depending on the browser looking at it.
This chapter covers the three topics you need to understand to deliver browser-specific pages using redirects: ...
Get The Book of JavaScript, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.