function newcaptcha() {
var c_currentTime = new Date();
var c_miliseconds = c_currentTime.getTime();
document.getElementById('captcha').src = 'captcha.php?' + Math.random();
}
<div class="group">
<label for="everifyin" class="label">CAPTCHA</label>
<input id="everifyin" type="text" name="everifysignin" placeholder="Enter the text">
<button form="form2" onclick="newcaptcha()">Refresh</button>
<img src="captcha.php" alt="CAPTCHA" id="captcha" align="right" />
</div>
单击刷新按钮,整页重新加载而不是仅使用casptcha代码