<p><input name="form[ip]" id="ip" class="ip" type="text" value="Enter IP here" />
</p>
<p><input type="submit" value="Submit" /></p>
var currentPageURL = "http://api.hostip.info/get_html.php?ip=12.215.42.19&position=true";
var ip = getMeasurementsFromUrl(currentPageURL)
alert(ip);
function getMeasurementsFromUrl(ip)
{
var ipMeasurmentString = ip.substring(ip.lastIndexOf('ip=')+3);
ipMeasurmentString =ipMeasurmentString.replace("&position=true","");
ipMeasurmentString =ipMeasurmentString.replace(",",".");
ipMeasurmentString =ipMeasurmentString.replace("/",".");
ipMeasurmentString =ipMeasurmentString.replace("-",".");
ipMeasurmentString =ipMeasurmentString.replace(",",".");
ipMeasurmentString =ipMeasurmentString.replace("/",".");
ipMeasurmentString =ipMeasurmentString.replace("-",".");
ipMeasurmentString =
return ipMeasurmentString;
}
I am trying to edit the webaddress so it reads the inputted ip, so far i have got it to read the ip currently in the address and have a form to input the ip.
Also if anyone has any tips on how to maker the form more ip formatted would be helpful.
If the ip adres does not change you could use:
if it change you could try: