I have a text field that contains an IP address that the user types. When I press send, I send the correct command, the problem is that the browser load the stubbornly old IP. What I want to do is refresh the page by getting what the user types into the text field. I created a function to refresh the page but I can not pass a parameter in there in the field.
Here is my code:
HTML Code:
<HTML> <HEAD>
<title>Changing the ip</title>
<style type="text/css">
body, td, th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #666666;
}
</style>
<script type="text/javascript">
var ip;
var a;
function Jump (ip){
location.href = ip;
}
</script>
</head>
<blockquote>
<p> </p>
<p> Network Settings </p> <hr> <br>
<div align="center">
<table width="44%" border="1" cellpadding="4" cellspacing="1" bordercolor="#808080" bgcolor="#808080">
<tr>
<td colspan="2" bgcolor="#800080">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #666666" width="145">
<b><font color="#FFFFFF">IP Address<br>Ex:000.000.000.000</font></b></td>
<td style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #666666">
<form method=get action="get_data" target="_blank">
<body> Enter Text Here:
<input type="text" name="arg1">
<input type="submit" value="Calibrate" onclick="setTimeout('Jump(form.arg1.value)',3000)">
</body>
</form> </td>
</tr>
</table> </td>
</tr>
</table> </div>
</body>
</blockquote>
</html>
There must be something I do not see. If someone could help me.
Bookmarks