-
-
Save apipkin/362370 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns = "http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Browser Information!</title> | |
<script type = "text/javascript"> | |
<!-- | |
function browser() { | |
document.getElementById('name').innerHTML=navigator.appName; | |
document.getElementById('version').innerHTML=navigator.appVersion; | |
document.getElementById('code').innerHTML=navigator.appCodeName; | |
document.getElementById('os').innerHTML=navigator.platform; | |
document.getElementById('cookie').innerHTML=navigator.cookieEnabled; | |
document.getElementById('agent').innerHTML=navigator.userAgent; | |
} | |
//-> | |
</script> | |
<body onload="browser();"> | |
<h1>Various Browser Information</h1> | |
<dl> | |
<dt>Browser Name:</dt> | |
<dd id="name"></dd> | |
<dt>Browser Version:</dt> | |
<dd id="version"></dd> | |
<dt>Browser Code Name:</dt> | |
<dd id="code"></dd> | |
<dt>Operating System:</dt> | |
<dd id="os"></dd> | |
<dt>Cookies Enabled:</dt> | |
<dd id="cookie"></dd> | |
<dt>User Agent Header:</dt> | |
<dd id="agent"></dd> | |
</dl> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment