Created
October 22, 2014 06:48
-
-
Save cheng470/7d39568457e544f5b1c8 to your computer and use it in GitHub Desktop.
浏览器信息
This file contains hidden or 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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>userAgent</title> | |
</head> | |
<body> | |
<div id="print"></div> | |
<script> | |
var print = document.getElementById("print"); | |
var str = "[navigator.userAgent] : " + navigator.userAgent + "<br />"; | |
str += "[location] : " + location + "\n"; | |
print.innerHTML = str; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment