Viewer Detection

With the proliferation of Flash sites came the proliferation of “plug-in detection scripts.” These detection scripts consisted of code that could be used to detect the computer platform, browser vendor and version, and plug-in vendor and version. By checking these attributes, a Web page could redirect users that didn't have the technology necessary to correctly view the advanced content. For example, you could have different versions of a Web site that were targeted to browsers based upon their capabilities.

Such detection scripts have become commonplace with the widespread use of Flash, which hasn't always been such a standard part of Web browsers. No one wants a user to arrive at a Web page only to see a broken graphic due ...

Get Sams Teach Yourself SVG in 24 Hours 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.