E
esrkq
Hi,
I am looking at a way to return IP related information of a visitor loading
a web page and found the following snippet of code:
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);
at http://javascript.internet.com/user-details/browser-properties.html
Has anyone got any experience of using these functions as I can't seem to
get them to work.
Cheers
Paul.
I am looking at a way to return IP related information of a visitor loading
a web page and found the following snippet of code:
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);
at http://javascript.internet.com/user-details/browser-properties.html
Has anyone got any experience of using these functions as I can't seem to
get them to work.
Cheers
Paul.