Posts Tagged ‘Javascript’

Script to show visitors IP Address

The follwoing Java Script will show the visitor his IP Address.

The Server Variable “REMOTE_ADDR” is used so the page must be saved with the .shtml extension

In the bellow script we are making use of  javascript and a server variable REMOTE_ADDR
The page in which you embed this following script will show your visitors their IP Address on the Internet.

<script language=”javascript”>
var ip = ‘<!–#echo var=”REMOTE_ADDR”–>’
document.write(ip)</script
>

You can also Apply text formatting and nest this script within various other HTML Tags