<! Doctype html> <html> <éadf> <meta http-equiv = "contenu-type" contenu = "text / html; charset = utf-8" /> <ititle> 防止重复表单提交 </ title> <style> #refresh {affiche: aucun; Largeur: 200px; hauteur: 20px; Color d'arrière-plan: # FF0; } </ style> <cript> var inprocess = false; window.onLoad = function () {document.forms ["Picker"]. OnSubmit = validaSUBMit; document.getElementById ("Refresh"). onClick = startover; } fonction validaSUBMit () {// 防止重复的表单提交 if (inprocess) return; inProcess = true; Console.log (InProcess); document.getElementById ("soumibutton"). Disabled = true; document.getElementById ("Refresh"). Style.display = "Block"; document.getElementById ("Message"). InnerHtml = "<p> 正在 Traitement , 稍等 </p>"; retourne false; } fonction startover () {inProcess = false; document.getElementById ("SoumidButton"). Disabled = false; document.getElementById ("message"). innerHtml = ""; document.getElementById ("Refresh"). Style.display = "Aucun"; } </ script> </ head> <body> <form id = "picker" metheth = "post" action = ""> group1: <input type = "radio" name = "group1" value = "one" /> group2: <entrée type = "radio" name = "group1" value = "two" /> group3: <entrée type = "radio" name = "group1" value = "trois" /> <br / br / br / brt / brat id = "Intext" /> Input 2: <input type = "text" id = "Intext2" /> Input 3: <input type = "text" id = "Intext3" /> <input type = "soumi" id = "soumibutton" value = "Envoyer le formulaire" /> </ form> <div id = "Refresh"> <p> 单击我 </ p> </v> </v> <v> <div Id = "Message"> <p> </ p> </v> </v> <v> <div Id = "Message"> <p> </ p> </v> </ Div> <div Id = "Message"> <p> </ p> </v> </ Div> <div Id = "Message"> <P> </ P> </ Div> </ Div ID = "Message"> </ DIV> </html>