How to use js to refresh the verification code page (made in php) I want to click [cannot see] on the login page to refresh the random code: & lt; imgsrc & quot; checkcode. php & quot; & gt; & lt; a & gt; cannot see clearly & lt; a & gt; & nbsp; where checkcode. php is a random code page. Just refresh this check. php, instead of refreshing the entire index. php. ----- how to use js to refresh the verification code page (php)
I want to click [not clear] on the login page to refresh the random code: not clear
Here, checkcode. php is a random code page. Just refresh check. php, instead of refreshing the entire index. php.
------ Solution --------------------
HTML code
You cannot see the script var src = document. getElementById ('code'). src; function refreshCode () {document. getElementById ('code'). src = src + "? Code = "+ Math. random ();} script