Its very easy to get IP address using javascript and SSI, Javscript is a client side script and it doesnt have the capablity of finding out the ip address by itself so we are using SSI along with javascript.
Use SHTML extention instead of html or htm, we are using SSI for getting the IP
Here is the SSI[Server Side Includes] script used in this tutorial
<!–#echo var=”REMOTE_ADDR”–>
<SCRIPT LANGUAGE="JavaScript"><!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! -->
<!-- Begin
// [url]http://www.mistonline.in[/url]
// 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. To display in the
// title bar, exclude the
//"<title></title>" code from the page.
// This part gets the IP
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>");
// End -->
</script>
Incoming search terms:
- javascript get ip address (28)
- javascript get ip (17)
- get ip address in javascript (11)
- get ip address using javascript (10)
- how to get ip address in javascript (8)
- get ip javascript (8)
- get ip address javascript (7)
- javascript ssi and cookies (7)
- getting ip address using javascript (6)
- get ip using javascript (5)
- get IP address using jquery (4)
- javascript ip address (4)
- javascript ip address script (4)
- javascript ip (4)
- ip address using javascript (4)
- getip html (2)
- getipaddress javascript (2)
- javascript Server ip address (2)
- get ip address of a server in the format 192 using javascript (2)
- jquery server Ip address (2)
- obtain ip address using javascript (2)
- get ip address through javascript (2)
- javascript getip (2)
- javascript get client ip address ssi (2)
- how to get client mac address using javascript (2)
- how to call javascript function in textboxarray in php (2)
- javascript to get IP (2)
- script htm get ip (2)
- ssi get ip address (2)
- how to get visitor ip address using javascript (2)
- how to get ip address with javascript (2)
- javascript find ip address (2)
- how to get ip address through javascript (2)
- obtain IP address with JavaScript (2)
- script java getip html (2)
- get IP address in java script (2)
- javascript ip tutoial (1)
- javascript get website IP (1)
- javascript get visitors ip (1)
- Java Script ip (1)
You will also be interested in ,
- Disabling right click menu using javascript
- Check password strength using javascript
- Javascript Countdown Script
- Displaying Text from User On Your Webpage
- Close Event In Javascript For Firefox, IE and Chrome
- Character Encoder And Decoder Using Javascript
- How to close a child window from a parent window using javascript
- Add a mouse cursor or pointer trailing text using javascript
- Simple message slideshow news ticker using javascript
- Alert a message before leaving a web page using javascript
