- 浏览: 2539126 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Getting Browsers Information from JS Object
First of all, I prepare my system and my mobile phone.
System is ubuntu desktop. So I install opera, Firefox, chrome, Midori.
Mobile phone is G7, so I install go, opera mini, uc, mathon and G7 internet browser.
Actually, only 2 of the browsers on G7 can access local web server: mathon and G7 internet browser.
My html page navigator.html:
<html>
<head>
<title>JavaScript Master-Navigator</title>
<script type="text/javascript">
function write2HTML(name,value){
document.write("<p>" + name + ": ");
document.write(value + "</p>");
}
var x = navigator;
document.write("<h1>JavaScript Navigator</h1>");
write2HTML("AppName",x.appName);
write2HTML("Vendor",x.vendor);
write2HTML("VendorSub",x.vendorSub);
write2HTML("App Version",x.appVersion);
//for example: Mozilla
write2HTML("App Code Name",x.appCodeName);
write2HTML("cookieEnabled",x.cookieEnabled);
write2HTML("userAgent",x.userAgent);
//additional version messages
write2HTML("appMinorVersion",x.appMinorVersion);
write2HTML("browserLanguage",x.browserLanguage);
write2HTML("language",x.language);
write2HTML("systemLanguage",x.systemLanguage);
write2HTML("userLanguage",x.userLanguage);
write2HTML("cpuClass",x.cpuClass);
write2HTML("oscpu",x.oscpu);
write2HTML("javaEnabled",x.javaEnabled());
//the browser is or not online to internet
write2HTML("onLine",x.onLine);
//platform
write2HTML("platform",x.platform);
//mime types which registered on the device
//MimeType description/type/enabledPlugin/suffixes
//DOMPlugin description/filename/length(The quantity of plug in associated MimeType objects)/name
document.write("<p>MimeTypes: ");
for(var i = 0;i<x.mimeTypes.length;i=i+1){
document.write(x.mimeTypes[i].enabledPlugin.name + ",");
if(i == 5){
break;
}
}
document.write("</p>");
//plugins on the device
//DOMPluginArray
//DOMPlugin description/filename/length(The quantity of plug in associated MimeType objects)/name
document.write("<p>Plugins: ");
for(var i = 0;i<x.plugins.length;i=i+1){
document.write(x.plugins[i].name);
if(i == 5){
break;
}
}
document.write("</p>");
//preference
write2HTML("Preference",x.preference);
//product
write2HTML("Product",x.product);
//productSub
write2HTML("ProductSub",x.productSub);
//opsProfile
write2HTML("OpsProfile",x.opsProfile);
//userProfile
write2HTML("UserProfile",x.userProfile);
//securityPolicy
write2HTML("SecurityPolicy",x.securityPolicy);
</script>
</head>
<body>
</body>
</html>
my html page monitor.html:
<html>
<head>
<title>JavaScript Master-Monitor</title>
<script type="text/javascript">
function write2HTML(name,value){
document.write("<p>" + name + ": ");
document.write(value + "</p>");
}
var s = screen;
document.write("<h1>JavaScript Monitor</h1>");
write2HTML("availHeight",s.availHeight);
write2HTML("availWidth",s.availWidth);
write2HTML("colorDepth",s.colorDepth);
write2HTML("height",s.height);
write2HTML("width",s.width);
</script>
</head>
<body>
</body>
</html>
my html page location.html:
<html>
<head>
<title>JavaScript Master-Navigator</title>
<script type="text/javascript">
function write2HTML(name,value){
document.write("<p>" + name + ": ");
document.write(value + "</p>");
}
var l = window.location;
document.write("<h1>JavaScript Location</h1>");
write2HTML("Hash",l.hash);
write2HTML("Host",l.host);
write2HTML("Hostname",l.hostname);
write2HTML("Href",l.href);
write2HTML("Pathname",l.pathname);
write2HTML("Port",l.port);
write2HTML("Protocol",l.protocol);
write2HTML("Search",l.search);
write2HTML("Target",l.target);
</script>
</head>
<body>
</body>
</html>
references:
http://www.w3school.com.cn/js/js_browser.asp
http://www.comptechdoc.org/independent/web/cgi/javamanual/javamimetype.html
http://www.comptechdoc.org/independent/web/cgi/javamanual/javalocation.html
http://www.gootry.com/java-height/article/100819203028/246
http://www.gootry.com/java-height/article/100820212451/248
First of all, I prepare my system and my mobile phone.
System is ubuntu desktop. So I install opera, Firefox, chrome, Midori.
Mobile phone is G7, so I install go, opera mini, uc, mathon and G7 internet browser.
Actually, only 2 of the browsers on G7 can access local web server: mathon and G7 internet browser.
My html page navigator.html:
<html>
<head>
<title>JavaScript Master-Navigator</title>
<script type="text/javascript">
function write2HTML(name,value){
document.write("<p>" + name + ": ");
document.write(value + "</p>");
}
var x = navigator;
document.write("<h1>JavaScript Navigator</h1>");
write2HTML("AppName",x.appName);
write2HTML("Vendor",x.vendor);
write2HTML("VendorSub",x.vendorSub);
write2HTML("App Version",x.appVersion);
//for example: Mozilla
write2HTML("App Code Name",x.appCodeName);
write2HTML("cookieEnabled",x.cookieEnabled);
write2HTML("userAgent",x.userAgent);
//additional version messages
write2HTML("appMinorVersion",x.appMinorVersion);
write2HTML("browserLanguage",x.browserLanguage);
write2HTML("language",x.language);
write2HTML("systemLanguage",x.systemLanguage);
write2HTML("userLanguage",x.userLanguage);
write2HTML("cpuClass",x.cpuClass);
write2HTML("oscpu",x.oscpu);
write2HTML("javaEnabled",x.javaEnabled());
//the browser is or not online to internet
write2HTML("onLine",x.onLine);
//platform
write2HTML("platform",x.platform);
//mime types which registered on the device
//MimeType description/type/enabledPlugin/suffixes
//DOMPlugin description/filename/length(The quantity of plug in associated MimeType objects)/name
document.write("<p>MimeTypes: ");
for(var i = 0;i<x.mimeTypes.length;i=i+1){
document.write(x.mimeTypes[i].enabledPlugin.name + ",");
if(i == 5){
break;
}
}
document.write("</p>");
//plugins on the device
//DOMPluginArray
//DOMPlugin description/filename/length(The quantity of plug in associated MimeType objects)/name
document.write("<p>Plugins: ");
for(var i = 0;i<x.plugins.length;i=i+1){
document.write(x.plugins[i].name);
if(i == 5){
break;
}
}
document.write("</p>");
//preference
write2HTML("Preference",x.preference);
//product
write2HTML("Product",x.product);
//productSub
write2HTML("ProductSub",x.productSub);
//opsProfile
write2HTML("OpsProfile",x.opsProfile);
//userProfile
write2HTML("UserProfile",x.userProfile);
//securityPolicy
write2HTML("SecurityPolicy",x.securityPolicy);
</script>
</head>
<body>
</body>
</html>
my html page monitor.html:
<html>
<head>
<title>JavaScript Master-Monitor</title>
<script type="text/javascript">
function write2HTML(name,value){
document.write("<p>" + name + ": ");
document.write(value + "</p>");
}
var s = screen;
document.write("<h1>JavaScript Monitor</h1>");
write2HTML("availHeight",s.availHeight);
write2HTML("availWidth",s.availWidth);
write2HTML("colorDepth",s.colorDepth);
write2HTML("height",s.height);
write2HTML("width",s.width);
</script>
</head>
<body>
</body>
</html>
my html page location.html:
<html>
<head>
<title>JavaScript Master-Navigator</title>
<script type="text/javascript">
function write2HTML(name,value){
document.write("<p>" + name + ": ");
document.write(value + "</p>");
}
var l = window.location;
document.write("<h1>JavaScript Location</h1>");
write2HTML("Hash",l.hash);
write2HTML("Host",l.host);
write2HTML("Hostname",l.hostname);
write2HTML("Href",l.href);
write2HTML("Pathname",l.pathname);
write2HTML("Port",l.port);
write2HTML("Protocol",l.protocol);
write2HTML("Search",l.search);
write2HTML("Target",l.target);
</script>
</head>
<body>
</body>
</html>
references:
http://www.w3school.com.cn/js/js_browser.asp
http://www.comptechdoc.org/independent/web/cgi/javamanual/javamimetype.html
http://www.comptechdoc.org/independent/web/cgi/javamanual/javalocation.html
http://www.gootry.com/java-height/article/100819203028/246
http://www.gootry.com/java-height/article/100820212451/248
发表评论
-
MongoDB 2019(3)Security and Auth
2019-11-16 06:48 232MongoDB 2019(3)Security and Aut ... -
Memory Leak in NodeJS
2018-12-20 06:26 723Memory Leak in NodeJS I have d ... -
Remote Desktop Client
2018-12-07 13:19 1185Remote Desktop Client There is ... -
MetaBase UI Console(2)Docker on MySQL
2018-11-29 06:58 938MetaBase UI Console(2)Docker on ... -
AWS Lambda and Serverless Timeout
2018-09-20 01:20 625AWS Lambda and Serverless Timeo ... -
2018 WebSocket(1)Introduction
2018-03-20 01:22 11032018 WebSocket(1)Introduction ... -
2018 TypeScript Update(3)Introduction Basic Grammar
2018-03-08 03:08 6002018 TypeScript Update(3)Introd ... -
2018 TypeScript Update(2)Introduction Basic Grammar - Classes and Functions
2018-03-06 05:32 5512018 TypeScript Update(2)Introd ... -
2018 TypeScript Update(1)Introduction Basic Grammar - Types and Interface
2018-03-03 01:15 5992018 TypeScript Update(1)Introd ... -
Charts and Console(6)Paging
2018-03-01 00:12 577Charts and Console(6)Paging Th ... -
Vue.JS(3)Google Login
2018-02-14 04:53 1296Vue.JS(3)Google Login I just p ... -
Vue.JS(2)Monitor Water Console - ChartJS and Axios
2018-02-14 03:17 718Vue.JS(2)Monitor Water Console ... -
Vue.JS(1)Introduction and Basic Demo
2018-02-08 06:47 604Vue.JS(1)Introduction and Basic ... -
Charts and Console(5)Validation Form
2017-10-03 05:12 804Charts and Console(5)Validation ... -
Charts and Console(4)Display and Enhancement
2017-09-20 05:39 631Charts and Console(4)Display an ... -
Charts and Console(3)Auth and Login
2017-09-13 03:45 659Charts and Console(3)Auth and L ... -
Charts and Console(2)Login and Proxy
2017-08-31 05:39 874Charts and Console(2)Login and ... -
Charts and Console(1)UI Console and RESTful Client
2017-08-29 11:02 766Charts and Console(1)UI Console ... -
Blog Project(2)Express Backend API - istanbul - mocha - bunyan
2017-06-09 00:05 473Blog Project(2)Express Backend ... -
ReactJS(5)Composition vs Inheritance
2017-06-06 05:55 1106ReactJS(5)Composition vs Inheri ...
相关推荐
「数据库审计」Forget_the_Sandbox_Escape_Abusing_Browsers_from_Code_Execution - 技术分析 渗透测试 WEB应用防火墙 法律法规 安全知识 WAF
Getting Started with Grunt: The JavaScript Task Runner provides you with all the information you need to become an effective Grunt power-user. You will quickly learn how to install, configure, and run...
浏览器架构通常包括主浏览器进程、渲染器/内容进程、渲染引擎、JavaScript引擎、JavaScript API绑定、WebAssembly、内存分配器、网络进程等。攻击者可以利用任意读写漏洞来操纵浏览器的数据结构,即使只具备读写权限...
"将App_Browsers直接放到IIS的发布网站下"这一建议意味着,`App_Browsers`可能是一个包含自定义浏览器定义或补丁的文件夹,这些定义或补丁可以与IIS(Internet Information Services)集成,来修改或增强其对特定...
标题中的“App_Browsers for ie11”指的是一个专门针对Internet Explorer 11(简称IE11)浏览器的解决方案,该方案与ASP.NET框架有关。ASP.NET是Microsoft开发的一个用于构建Web应用程序的框架,它提供了丰富的...
4. **JavaScript重定向**:如果页面跳转是通过客户端JavaScript实现,IE的某些安全设置或脚本执行问题可能导致重定向失败。 5. **Response.Redirect()**:在.NET中,使用`Response.Redirect()`方法进行服务器端...
### Web Browsers:互联网探索之门 #### 一、引言 随着互联网技术的迅猛发展,Web浏览器成为了人们日常生活中不可或缺的一部分。它不仅为用户提供了一种便捷的方式访问万维网,同时也是连接全球信息的重要工具。...
WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other...
WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other...
本文《Trusted Browsers for Uncertain Times》中,作者David Kohlbrenner和Hovav Shacham探讨了浏览器中的时序信道(timing channels)问题,以及如何防范通过JavaScript代码泄漏用户的敏感信息。文章出自...
WebAssembly is the most promising new technology for the web, allowing browsers, and other JavaScript environments, to run blazing-fast raw binary modules, compiled directly from C, C++ and many other...
Getting Started with Grunt: The JavaScript Task Runner provides you with all the information you need to become an effective Grunt power-user. You will quickly learn how to install, configure, and ...
fly graphicsJavaScript API changes in HTML5how browsers handle JavaScript errors and error handlingfeatures of JavaScript used to read and manipulate XML datathe JSON data format as an alternative to ...
json2.js: This file creates a JSON property in the global object, if there isn't already one, setting its value to an object containing a stringify method and a parse method. The parse method uses ...
Updated to include the latest coverage of JavaScript, including howit fits into current Web browsers and applications as well as an exploration of its interaction with XML data in Ajax - This mammoth ...
The Definitive Guide has been the bible for JavaScript programmers—a programmer's guide and comprehensive reference to the core language and to the client-side JavaScript APIs defined by web browsers....
Paperback: 224 pages Publisher: Packt Publishing - ebooks Account (October 30, 2015) Language: English ...Prepare for the upcoming JavaScript standard ECMAScript 6 and support older browsers
JSON.parse(jsonstr); 对JSON字符串反序列化成JSON对象;JSON.stringify(jsonobj); 将JSON对象序列化成JSON字符串,传到后台再进行反序列化, 官方地址 ...相对json.js与json2.js json3.js做了很多优化,建议使用