You are here: irt.org | FAQ | JavaScript | General | Q1446 [ previous next ]
Only in Netscape unless you write a Java Applet:
<script language="JavaScript"><!--
if (navigator.appName=='Netscape' && navigator.javaEnabled()) {
hn = java.net.InetAddress.getLocalHost().getHostName();
ha = java.net.InetAddress.getLocalHost().getHostAddress();
document.write('HostName: '+ hn + '<br>' + 'HostAddress: '+ ha );
}
//--></script>