This is a very neat snippet to show your users their browser details
it's also possiable that you can get the users ip and show it to them
but i prefer doing that in php.
Code:
<html>
<head>
<title>Show Browser Info</title>
<script language=JavaScript>
function browserinfo(){
with(document){
write('<br /><b>Name: </b>' + navigator.appName);
write('<br /><b>Code Name: </b>' + navigator.appCodeName);
write('<br /><b>Version: </b>' + navigator.appVersion.substring(0,4));
write('<br /><b>Java Enabled: </b>' + navigator.javaEnabled());
write('<br /><b>Platform: </b>' + navigator.platform);
}
}
</script>
</head>
<body onLoad="browserinfo();">
</body>
</html>
// THE CODE WILL OUTPUT SOMETHING SIMILAR TO THIS
// Name: Microsoft Internet Explorer
// Code Name: Mozilla
// Version: 4.0
// Java Enabled: true
// Platform: Win32
please add comments if you like it
