I don't see why not (but you could try it out!).
Or use this:-
Code:
<script type = "text/javascript">
var ip = "129.31.1.10";
var valid = true;
var ipsub = new Array();
ipsub = ip.split(".");
for (var i = 0; i <ipsub.length; i++) {
var sub = parseInt(ipsub[i]);
if ((isNaN(sub)) || (sub <0) || (sub >255)) {
valid = false;
}
}
alert (valid);
</script>
"Very unusually it has turned noon here in Newcastle." - Football Commenator