<?xml version="1.0" encoding="utf-8"?>

<snippet name = "浏览器检测：简单" description = "使用全局变量标识访问者的浏览器的简单代码。" preview="code" type="block">

<insertText location="beforeSelection">

<![CDATA[var ie4 = document.all;

var ns4 = document.layers;

var ns6 = document.getElementById && !document.all; 

]]>

</insertText>

<insertText location="afterSelection"><![CDATA[]]>

</insertText>

</snippet>

