I have two <input type ="submit">
with formaction
inside a <form method="post" action="">
and these suckers prompt the Confirm Form Resubmission
on refresh:
<form method = "post" action="">
<input class = "button" type="submit" name="dhcp" value="DHCP IP" title="Redirect to DHCP IP Config page" formaction="/dhcp_ip.php">
<input class = "button" type="submit" name="static" value="Static IP" title="Redirect to Static IP Config page" formaction="/static_ip.php">
</form>
I was led to believe that <form method="post">
or any POST
method prompts Confirm Form Resubmission
so I have eliminated the form and replaced it with two button
elements:
<button class="button" onclick="goDHCP()">DHCP IP</button>
<button class="button" onclick="goStatic()">Static IP</button>
<script>
function goDHCP() {
window.location.replace("/dhcp_ip.php");
}
function goStatic() {
window.location.replace("/static_ip.php");
}
</script>
But this also prompts Confirm Form Resubmission
on refresh.
What element prompts it ? And how can I not prompt it ? Because I also have some <input type="text">
, on other pages, which do not prompt Confirm Form Resubmission
on refresh, unless the user starts typing something in them.