Browser Information

[Total: 0    Average: 0/5]

This shows how to find some of the information about the user, like their screen dimensions and browser version and type.

Body Code:

<SCRIPT type=text/javascript>
var JavaEnabled = navigator.javaEnabled();
if (JavaEnabled) document.write('Java Enabled<BR>');
else document.write('Java Disabled<BR>');

document.write('Browser Type: '+navigator.appName+'<BR>');
document.write('Browser Version: '+navigator.appVersion+'<BR>');

if(navigator.userAgent.indexOf('Win')!=-1 &&
   navigator.userAgent.indexOf('95')!=-1)
  document.write("Windows95<BR>");

if(navigator.userAgent.indexOf('Win')!=-1 &&
   navigator.userAgent.indexOf('98')!=-1)
  document.write("Windows98<BR>");

if(navigator.userAgent.indexOf('Win')!=-1 &&
   navigator.userAgent.indexOf('2000')!=-1)
  document.write("Windows2000<BR>");

if(navigator.userAgent.indexOf('Mac')!=-1)
  document.write("Macintosh<BR>");

document.write("Screen Width x Height = "+
  window.screen.width+" x "+window.screen.height+"<BR>");
</SCRIPT>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *