Advertisement
wai0004

Browser Info

Oct 4th, 2013
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.28 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Browser Info</title>
  6. <style type="text/css">
  7. <!--
  8. .test {
  9.     font-family: Courier New, Courier, monospace;
  10. }
  11. -->
  12. </style>
  13. </head>
  14. <body>
  15. <div id="title"><h1 align="center"><strong>Browser Info</strong></h1> </div>
  16. <div id="browserinfo"></div>
  17.  
  18. <script>
  19.  document.write("Java enabled: " + navigator.javaEnabled());
  20. txt = "<p>Browser CodeName: " + navigator.appCodeName + "</p>";
  21. txt+= "<p>Browser Name: " + navigator.appName + "</p>";
  22. txt+= "<p>Browser Version: " + navigator.appVersion + "</p>";
  23. txt+= "<p>Cookies Enabled: " + navigator.cookieEnabled + "</p>";
  24. txt+= "<p>Platform: " + navigator.platform + "</p>";
  25. txt+= "<p>User-agent header: " + navigator.userAgent + "</p>";
  26. txt+= "<p>Cpu Type: " + navigator.cpuClass + "</p>";
  27. //txt+= "Java enabled: " + navigator.javaEnabled + "</p>";
  28.  
  29.  
  30.  
  31. document.getElementById("browserinfo").innerHTML=txt;
  32.  
  33.  
  34.  
  35. </script>
  36. <div align="center">
  37.   <input name="reload" type="submit" class="test" onclick="document.location.reload(true)" value="Refresh" />
  38. </div>
  39. </body>
  40. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement