function actualizarCaptcha(v_url) { document.getElementById('captcha_img').src = v_url + '?sid=' + Math.random(); this.blur(); } function actualizarPagina() { this.location = this.location + '?sid=' + Math.random(); this.location.reload(); } // Llamando a esta función desde onsubmit del formulario conseguimos que se resetee después de hacer una petición function clearForm(formName){ //setTimeout(function(){this.location.reload();formName.reset();},8000); setTimeout(formName+'.reset()',8000); //this.location.reload(); return true; }