check.jcarr.wit.com/javascript_dump/index.html

325 lines
15 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Language" content="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="JavaScript that attempts to identify your Web browser and provide information about your computer.">
<meta name="keywords" content="Web browser, Web browsers, browser, browsers, identify, identification, information, JavaScript">
<meta name="author" content="Alan Wood">
<link rel="top" href="../index.html" title="Alan Woods Web site">
<link rel="shortcut icon" href="fav_aw.ico">
<link rel="icon" href="fav_aw.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="main.css">
<link rel="alternate stylesheet" type="text/css" href="mainhigh.css" title="High visibility">
<link rel="meta" href="http://www.alanwood.net/labels.rdf" type="application/rdf+xml" title="ICRA labels">
<meta http-equiv="pics-Label" content='(pics-1.1 "http://www.icra.org/pics/vocabularyv03/" l gen true for "http://alanwood.net" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0) gen true for "http://www.alanwood.net" r (n 0 s 0 v 0 l 0 oa 0 ob 0 oc 0 od 0 oe 0 of 0 og 0 oh 0 c 0))'>
<title>Information about your Web browser from JavaScript</title>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
var yourapp=navigator.appName
var yourappalt=navigator.userAgent
var yourversion=navigator.appVersion
var yourappcodename=navigator.appCodeName
var yourplatform=navigator.platform
var youroscpu=navigator.oscpu
var yourcookie=navigator.cookieEnabled
var outwinw=window.outerWidth
var outwinh=window.outerHeight
var inwinw=window.innerWidth
var inwinh=window.innerHeight
document.cookie="Cookies are supported";
jsversion = "1.0";
// End of script -->
</script>
<script language="JavaScript1.1" type="text/javascript">
<!-- Start of script
jsversion = "1.1";
// End of script -->
</script>
<script language="JavaScript1.2" type="text/javascript">
<!-- Start of script
jsversion = "1.2";
colourbits = window.screen.colorDepth;
colournumber = Math.pow (2, colourbits);
// End of script -->
</script>
<script language="JavaScript1.3">
<!-- Start of script
jsversion = "1.3";
// End of script -->
</script>
<script language="JavaScript1.4">
<!-- Start of script
jsversion = "1.4";
// End of script -->
</script>
<script language="JavaScript1.5">
<!-- Start of script
jsversion = "1.5";
// End of script -->
</script>
<script language="JavaScript1.6">
<!-- Start of script
jsversion = "1.6";
// End of script -->
</script>
<script language="JavaScript1.7">
<!-- Start of script
jsversion = "1.7";
// End of script -->
</script>
<script language="JavaScript1.8">
<!-- Start of script
jsversion = "1.8";
// End of script -->
</script>
<script language="JavaScript1.9">
<!-- Start of script
jsversion = "1.9";
// End of script -->
</script>
</head>
<body><a name="top"></a>
<div class="c">
<div class="h">
<h1>Information about your Web browser</h1>
<h2>JavaScript</h2>
</div>
<div class="i">
<table class="nav">
<tr>
<td class="navg">JavaScript</td>
<td><a class="nav" href="browserinfo.php">PHP: Hypertext Preprocessor</a></td>
<td><a class="nav" href="browserinfo-ssi.shtml">SSI: Server-side includes</a></td>
</tr>
</table>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write("<p>This Web page uses JavaScript to determine information about the Web browser that you are using and about your computer. This information is only displayed; it is not stored or used in any way.<\/p><p><a href='enabling-javascript.html'>Instructions for enabling and disabling JavaScript in Web browsers<\/a><\/p>");
// End of script -->
</script>
</div>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write("<div class='i'><h3>Browser identity<\/h3><p>The <a href='#navobj'>JavaScript navigator object<\/a> includes 4 properties that help to identify a Web browser: appName, appCodeName, userAgent and appVersion.<\/p>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write ("<h4>appName</h4><p class='mt'><strong>" + yourapp + "<\/strong><\/p>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write ("<h4>appCodeName</h4><p class='mt'><strong>" + yourappcodename + "<\/strong><br>Almost all Web browsers use the internal code name Mozilla.<\/p>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write ("<h4>userAgent</h4><p class='mt'><strong>" + yourappalt + "<\/strong><br>This is the most useful data for identifying a browser.<\/p>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write ("<h4>appVersion</h4><p class='mt'><strong>" + yourversion + "<\/strong><br>If you are using an obsolete Netscape browser, then the first number is its version number.<br>If you are using any other browser, then the first number is either (a) the Netscape version with which your browser claims to be compatible, and the version of your browser will appear among the other information, or (b) the version of your browser.<br><\/p>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write ("<h4>How does this identify my browser?</h4><p class='mt'>This data is intended for use by computer programs, not by human beings. However, it is possible to make an educated guess as to the identity of your Web browser by interpreting the data, and then to <a href='browser-identification.html'>display the browser&#8217;s name in plain English<\/a>. In combination with other data, it is sometimes possible to tell when a browser is <a href='browser-identification.html#spoof'>spoofing<\/a> (pretending to be a different browser).<\/p><\/div>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write("<div class='i'><h3>Browser properties<\/h3><p>JavaScript can detect some of the capabilities of your Web browser.<\/p>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
if (document.cookie.length > 0)
{
document.write("<h4>Cookie support<\/h4><p class='mt'>An attempt to create a temporary cookie succeeded, and therefore:<br><strong>Cookie support is enabled<\/strong><\/p>");
}
else
{
document.write("<h4>Cookie support<\/h4><p class='mt'>An attempt to create a temporary cookie failed, and therefore:<br><strong>Cookie support is not enabled<\/strong><\/p>");
}
document.write("<p>Querying the navigator object indicates that cookie support is:<br><strong>" + yourcookie + "<\/strong><\/p>");
// End of script -->
</script>
<script language="JavaScript1.1" type="text/javascript">
<!-- Start of script
if (navigator.javaEnabled())
{
document.write("<h4>Java support<\/h4><p class='mt'>This Web site does not use Java, but your Web browser reports its Java support as:<br><strong>enabled<\/strong><\/p>");
}
else
{document.write("<h4>Java support<\/h4><p class='mt'>This Web site does not use Java, but your Web browser reports its Java support as:<br><strong>not enabled<\/strong><\/p>");
}
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write("<h4>JavaScript support<\/h4><p class='mt'>Your Web browser reports its JavaScript support as:<br><strong>JavaScript version " + jsversion + "<\/strong><\/p>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
if (navigator.userAgent.toLowerCase().indexOf("msie") != -1 && (parseInt(navigator.appVersion) >= 4) && navigator.userAgent.toLowerCase().indexOf(".net clr") != -1)
{
document.write("<h4>Encodings<\/h4><p class='mt'>Your Web browser is displaying this document using <strong>" + document.charset + "<\/strong> encoding. You can change this from Encoding (or Character Set) on the View menu.<\/p><p>Your Web browser&#8217;s default encoding (i.e. the one used for Web pages for which charset is not specified) is currently set to <strong>" + document.defaultCharset + "<\/strong>.<\/p><\/div>");
}
else
{
document.write("<h4>Encoding<\/h4><p class='mt'>The encoding that your Web browser is using to display this document is:<br><strong> " + document.characterSet + "<\/strong><\/p><\/div>");
}
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write("<div class='i'><h3>Computer properties<\/h3><p>JavaScript can detect some of the features of your computer.<\/p>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write("<h4>Operating system<\/h4><p class='mt'>Your Web browser reports your platform as:<br><strong>" + yourplatform + "<\/strong><br><small>Technical note: this item displays the platform property of the navigator object.<\/small><\/p>");
// End of script -->
</script>
<script language="JavaScript1.2" type="text/javascript">
<!-- Start of script
document.write("<h4>Screen colours<\/h4><p class='mt'>Your current screen colour depth is:<br><strong>" + colournumber + " colours (" + colourbits + " bits)<\/strong><\/p>");
// End of script -->
</script>
<script language="JavaScript1.2" type="text/javascript">
<!-- Start of script
document.write("<h4>Screen resolution<\/h4><p class='mt'>Your current screen resolution is:<br><strong>" + screen.width + " &times; " + screen.height + " pixels (width &times; height)<\/strong><br><small>Technical note: this item displays the width and height properties of the screen object.<\/small><\/p><p class='mt'>The area of your screen that is currently available to applications is:<br><strong>" + screen.availWidth + " &times; " + screen.availHeight + " pixels (width &times; height)<\/strong><br><small>Technical note: this item displays the availWidth and availHeight properties of the screen object.<\/small><\/p>");
// End of script -->
</script>
<script language="JavaScript1.2" type="text/javascript">
<!-- Start of script
document.write("<h4>Browser window size<\/h4><p class='mt'>Your current browser window size is:<br><strong>" + outwinw + " &times; " + outwinh + " pixels (width &times; height)<\/strong><br><small>Technical note: this item displays the outerWidth and outerHeight properties of the window object.<\/small><\/p><p class='mt'>The area of your browser window that is currently available to display web pages is:<br><strong>" + inwinw + " &times; " + inwinh + " pixels (width &times; height)<\/strong><br><small>Technical note: this item displays the innerWidth and innerHeight properties of the window object.<\/small><\/p><p class='mt'>Note 1: If you change the size of your browser window, these values will not change until you refresh the display by pressing F5.<\/p><p class='mt'>Note 2: Internet Explorer 8 and earlier do not support these properties.<\/p><p class='mt'>Note 3: Some browsers modify the values for these properties if you zoom in or zoom out.<\/p><\/div>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
if (jsversion < 1.2)
{
document.write("<h4>Screen colours and resolution<\/h4><p class='mt'>Your Web browser is quite old, and the early version of JavaScript that it supports is not able to determine the resolution or the colour depth of your screen.<\/p><\/div>");
}
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write("<div class='i'><a name='navobj'><\/a><h3>Navigator object properties<\/h3><p>The following table lists all of the properties of the JavaScript navigator object that are supported by your browser:<\/p>");
var html = "";
for (var n in window.navigator)
html += "<tr><td>" + n + "<\/td><td>" + window.navigator[n] + "&nbsp\;<\/td><\/tr>";
document.write("<table class='bord' border='1' cellpadding='4' cellspacing='0' width='100%'>");
document.write("<tr><th>Property<\/th><th>Value<\/th><\/tr>");
document.write(html);
document.write("<\/table>");
document.write("<br><\/div>");
// End of script -->
</script>
<script language="JavaScript" type="text/javascript">
<!-- Start of script
document.write("<div class='i'><h3>Navigator document properties<\/h3><p>The following table lists a few of the properties of the JavaScript document object that may be supported by your browser:<\/p>");
document.write("<table class='bord' border='1' cellpadding='4' cellspacing='0' width='100%'>");
document.write("<tr><th>Property<\/th><th>Value<\/th><\/tr>");
document.write("<tr><td>charset<\/td><td>" + document.charset + "<\/td><\/tr>");
document.write("<tr><td>characterSet<\/td><td>" + document.characterSet + "<\/td><\/tr>");
document.write("<tr><td>defaultCharset<\/td><td>" + document.defaultCharset + "<\/td><\/tr>");
document.write("<tr><td>inputEncoding<\/td><td>" + document.inputEncoding + "<\/td><\/tr>");
document.write("<tr><td>cookie<\/td><td>" + document.cookie + "<\/td><\/tr>");
document.write("<tr><td>bgColor<\/td><td>" + document.bgColor + "<\/td><\/tr>");
document.write("<tr><td>fgColor<\/td><td>" + document.fgColor + "<\/td><\/tr>");
document.write("<tr><td>linkColor<\/td><td>" + document.linkColor + "<\/td><\/tr>");
document.write("<tr><td>alinkColor<\/td><td>" + document.alinkColor + "<\/td><\/tr>");
document.write("<tr><td>vlinkColor<\/td><td>" + document.vlinkColor + "<\/td><\/tr>");
document.write("<tr><td>contentType<\/td><td>" + document.contentType + "<\/td><\/tr>");
document.write("<tr><td>mimeType<\/td><td>" + document.mimeType + "<\/td><\/tr>");
document.write("<tr><td>compatMode<\/td><td>" + document.compatMode + "<\/td><\/tr>");
document.write("<\/table>");
document.write("<br><\/div>");
// End of script -->
</script>
<noscript>
<div class="i">
<h3>Your Web browser does not support JavaScript</h3>
<p>This Web page tries to use JavaScript to determine information about your Web browser, but either you are using a browser that does not support JavaScript, or else support has been disabled.</p>
<p><a href="enabling-javascript.html">Instructions for enabling and disabling JavaScript in Web browsers</a></p>
</div>
</noscript>
<div class="i">
<p class="m"><a href="../em2aw.php" rel="nofollow">Send comments or questions to Alan Wood</a></p>
<p class="m2"><a href="http://validator.w3.org/check?uri=referer"><img src="../valid-html401.gif" width="88" height="31" alt="Valid HTML 4.01" title="Validates with the W3C HTML Validation Service"></a> &nbsp; &nbsp; <a href="http://www.unicode.org"><img src="../unienctransbord31.gif" width="88" height="31" alt="Unicode Encoded" title="Go to the Unicode, Inc. Web site"></a><br>
<small>Created 6th December 1997 &nbsp;&nbsp; Updated 8th September 2013<br>
Copyright &copy; 19972013 Alan Wood</small></p>
</div>
<div class="h">
<a class="b" href="../index.html" title="Go to the home page of this Web site">Alan Woods Web site</a>
</div>
</div>
</body>
</html>