javascript当中navigator的用法

3.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>

更多内容请见原文,文章转载自:https://blog.csdn.net/qq_43650923/article/details/103042952

posted @ 2021-11-28 18:13  malala  阅读(251)  评论(0编辑  收藏  举报