Eine detaillierte
Variante der Browser- Information. Bei Netscape- Browsern mit aktiviertem
Java kann der Hostname sowie die IP- Nummer ausgelesen werden.
[ zwischen <HEAD> und </HEAD>]
<script language="JavaScript">
<!--
begin
function
display() {
window.onerror=null;
colors =
window.screen.colorDepth;
document.form.color.value
= Math.pow (2, colors);
if (window.screen.fontSmoothingEnabled
== true)
document.form.fonts.value
= "Yes";
else document.form.fonts.value
= "No";
document.form.navigator.value
= navigator.appName;
document.form.version.value
= navigator.appVersion;
document.form.colordepth.value
= window.screen.colorDepth;
document.form.width.value
= window.screen.width;
document.form.height.value
= window.screen.height;
document.form.maxwidth.value
= window.screen.availWidth;
document.form.maxheight.value
= window.screen.availHeight;
document.form.codename.value
= navigator.appCodeName;
document.form.platform.value
= navigator.platform;
if (navigator.javaEnabled()
< 1) document.form.java.value="No";
if (navigator.javaEnabled()
== 1) document.form.java.value="Yes";
if(navigator.javaEnabled()
&& (navigator.appName != "Microsoft Internet Explorer")) {
vartool=java.awt.Toolkit.getDefaultToolkit();
addr=java.net.InetAddress.getLocalHost();
host=addr.getHostName();
ip=addr.getHostAddress();
alert("Your
host name is '" + host + "'\nYour IP address is " + ip);
}
}
// end
-->
</script>