Forum Moderators: open
Your server will need to support .shtml files. Here is the code:
//This code sets variable ip to the user's IP address
var ip = '<!--#echo var="REMOTE_ADDR"-->';
//Now, you can do anything with variable IP, such as:
alert("Your IP address is "+ip); //an alert box
window.defaultStatus = "Your IP address is "+ip; // a status bar message
document.write("<title>Your IP address is "+ip+"</title>"); //a title bar message
Hope this helps!