How to refresh or partially refresh the .net CAPTCHA
This article mainly shows you "how to achieve .net CAPTCHA refresh or local refresh", the content is easy to understand, clear, hope to help you solve your doubts, the following let Xiaobian lead you to study and learn "how to achieve .net CAPTCHA refresh or local refresh" this article.
The code is as follows:
Verification code:
Method 1: use the pseudo-class implementation of JavaScrip
The copy code is as follows:
Method 2: introduce external files
Introduce external files between html files
The copy code is as follows:
/ / external file code.js sets local refresh function
Function code () {
Var code = document.getElementByIdx_x_x ('code')
Var update = document.getElementByIdx_x_x ('update')
Update.onclick = function () {
Code.src='code.php?tm='+Math.random ()
}
}
The above is all the contents of the article "how to refresh or partially refresh. Net CAPTCHA". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!