📄 dom_obj_navigator.asp@output=print
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML DOM Navigator Object</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
<h1>HTML DOM Navigator Object</h1>
<hr />
<h2>Navigator Object</h2>
<p>The Navigator object is actually a JavaScript object, not an HTML DOM object.</p>
<p>The Navigator object is
automatically created by the JavaScript runtime engine and contains information about the client browser.</p>
<p><b>IE:</b> Internet Explorer, <b>F:</b> Firefox, <b>O:</b> Opera.</p>
<h3>Navigator Object Collections</h3>
<table class="ex" cellspacing="0" border="1" width="100%">
<tr>
<th width="25%" align="left">Collection</th>
<th width="62%" align="left">Description</th>
<th width="5%" align="left">IE</th>
<th width="4%" align="left">F</th>
<th width="4%" align="left">O</th>
</tr>
<tr>
<td valign="top">plugins[]</td>
<td valign="top">Returns a reference to all embedded objects in the document</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
</table>
<h3>Navigator Object Properties</h3>
<table class="ex" cellspacing="0" border="1" width="100%">
<tr>
<th width="25%" align="left">Property</th>
<th width="62%" align="left">Description</th>
<th width="5%" align="left">IE</th>
<th width="4%" align="left">F</th>
<th width="4%" align="left">O</th>
</tr>
<tr>
<td valign="top"><a href="prop_nav_appcodename.asp">appCodeName</a></td>
<td valign="top">Returns the code name of the browser</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_appminorversion.asp">appMinorVersion</a></td>
<td valign="top">Returns the minor version of the browser</td>
<td valign="top">4</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_appname.asp">appName</a></td>
<td valign="top">Returns the name of the browser</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_appversion.asp">appVersion</a></td>
<td valign="top">Returns the platform and version of the browser</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_browserlanguage.asp">browserLanguage</a></td>
<td valign="top">Returns the current browser language</td>
<td valign="top">4</td>
<td valign="top">No</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_cookieenabled.asp">cookieEnabled</a></td>
<td valign="top">Returns a Boolean value that specifies whether cookies are enabled
in the browser</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_cpuclass.asp">cpuClass</a></td>
<td valign="top">Returns the CPU class of the browser's system</td>
<td valign="top">4</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_online.asp">onLine</a></td>
<td valign="top">Returns a Boolean value that specifies whether the system
is in offline mode</td>
<td valign="top">4</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_platform.asp">platform</a></td>
<td valign="top">Returns the operating system platform</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_systemlanguage.asp">systemLanguage</a></td>
<td valign="top">Returns the default language used by the OS</td>
<td valign="top">4</td>
<td valign="top">No</td>
<td valign="top">No</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_useragent.asp">userAgent</a></td>
<td valign="top">Returns the value of the user-agent header sent by the client to
the server</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="prop_nav_userlanguage.asp">userLanguage</a></td>
<td valign="top">Returns the OS' natural language setting</td>
<td valign="top">4</td>
<td valign="top">No</td>
<td valign="top">9</td>
</tr>
</table>
<h3>Navigator Object Methods</h3>
<table class="ex" cellspacing="0" border="1" width="100%">
<tr>
<th width="25%" align="left" valign="top">Method</th>
<th width="62%" align="left" valign="top">Description</th>
<th width="5%" align="left" valign="top">IE</th>
<th width="4%" align="left" valign="top">F</th>
<th width="4%" align="left" valign="top">O</th>
</tr>
<tr>
<td valign="top"><a href="met_nav_javaenabled.asp">javaEnabled()</a></td>
<td valign="top">Specifies whether or not the browser has Java
enabled</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
<tr>
<td valign="top"><a href="met_nav_taintenabled.asp">taintEnabled()</a></td>
<td valign="top">Specifies whether or not the browser has data tainting
enabled</td>
<td valign="top">4</td>
<td valign="top">1</td>
<td valign="top">9</td>
</tr>
</table>
<hr />
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -