1. Fool-Type Refresh
The so-called fool-like refresh is, directly in the verification code picture after adding a hyperlink, the hyperlink address or this page, the advantage is: The simplest way, a look at the know is
What do you mean, no technical content. But not enough: this refresh is equivalent to refreshing the entire page, which is the same as the effect of clicking on the browser refresh, and emptying the information you fill in the form.
The following two kinds of refresh does not clear the form information, is a bit of trouble, the Web page commonly used to refresh the code is the third type.
2. Click the Verification code picture Refresh
<script type= "Text/javascript" >
function Change (IMG) {
IMG.SRC = Img.src + "?" + new Date (). GetTime ();
}
</script>
<input type= "text" name= "Checkcode" >
(see not clear, click the Verification Code)
3. Click on the connection after the verification code refresh
<script type= "Text/javascript" >
function Change () {
document.getElementById ("img"). src = "Checkcode" + math.random ();
}
</script>
<input type= "text" name= "Checkcode" >
<a href= "Javascript:change ();" > can not see Clearly, Dot here </a><br><br>
Detailed: src = "Checkcode?" + math.random (); The question mark at the back is the meaning of the ginseng, that is, let this path follow a random number, has reached the effect of refreshing. Img
Src= "Checkcode", where the Checkcode is written to verify the code class, the JS script above is through the way to get the ID to refresh, so here's ID must have, must not omit
Of