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>

详见:http://www.mark-to-win.com/index.html?content=Javascript/jsUrl.html&chapter=Javascript/js5_web.html#javascriptnavigation

猜你喜欢

转载自blog.csdn.net/mark_to_win/article/details/88663679
今日推荐