IP address display

admin

Administrator
Staff member
Can the following script be modified so that it doesn't use SSI

<script language="javascript">

//IP address display: By <!-- m --><a class="postlink" href="http://www.Hostroute.com">http://www.Hostroute.com</a><!-- m -->
//Script featured on Website Abstraction (<!-- m --><a class="postlink" href="http://wsabstract.com">http://wsabstract.com</a><!-- m -->)

var ip = '<!--#echo var="REMOTE_ADDR"-->'

function ipval() {
document.myform.ipaddr.value=ip;
}
window.onload=ipval
</script>

<form method="post" action="" name="myform">
<input type="text" name="ipaddr" readonly>
</form>
 
Back
Top