javascript当中navigator的用法


例 1.3(navigatorIEFF.html)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>

<BODY>
<SCRIPT LANGUAGE="JavaScript">
<!--
for(var p in navigator)
{
/*Window.navigator (Property)
A reference to a navigator object that describes the browser.*/
     document.write("属性"+p+"的属性值为:"+navigator[p]+"<br>");
}

//-->
</SCRIPT>
</BODY>
</HTML>