vikramonline
Programmer
This script does not work for me.
<SCRIPT LANGUAGE="JavaScript">
var ip = '<!--#echo var="REMOTE_ADDR"-->';
// This part is for an alert box
alert("Your IP address is "+ip);
// This part is for the status bar
window.defaultStatus = "Your IP address is "+ip;
// This part is for the title bar
document.write("<title>Your IP address is "+ip+"</title>");
</script>
I got this script from a site.
"Depending on your server set-up,you may need to use the ".shtml" extension [instead of the "html" or "htm"] as the script uses Server Side Includes."
was mentioned along with the script.I am using IIS Server and when I put this script in an htm or html page , it does not work.
Please suggest
<SCRIPT LANGUAGE="JavaScript">
var ip = '<!--#echo var="REMOTE_ADDR"-->';
// This part is for an alert box
alert("Your IP address is "+ip);
// This part is for the status bar
window.defaultStatus = "Your IP address is "+ip;
// This part is for the title bar
document.write("<title>Your IP address is "+ip+"</title>");
</script>
I got this script from a site.
"Depending on your server set-up,you may need to use the ".shtml" extension [instead of the "html" or "htm"] as the script uses Server Side Includes."
was mentioned along with the script.I am using IIS Server and when I put this script in an htm or html page , it does not work.
Please suggest