<! doctype html> <html> <head> <meta http-equiv =“ content-type” content =“ text/html; charset = utf-8”/> <title> </> </> </> </> </> </title> </title> </title> <樣式> #refresh #refresh {display:none; none;寬度:200px;身高:20px;背景色:#ff0; } </style> <script> var inprocess = false; window.onload = function(){document.forms [“ picker”]。 document.getElementById(“ Refresh”)。 onClick = startover; } function naryatesUbmit(){//防止重複的表單提交如果(inprocess)return; inprocess = true; console.log(inprocess); document.getElementById(“ submistButton”)。禁用= true; document.getElementById(“ Refresh”)。 style.display =“ block”; document.getElementById(“ message”).InnerHtml =“ <p>正在處理,稍等</p>”;返回false; }函數stromover(){inprocess = false; document.getElementById(“ submistButton”)。禁用= false; document.getElementById(“ message”).InnerHtml =“”; document.getElementById(“ Refresh”)。 style.display =“ none”; } < /script> < /head> <身體> <形式id =“ picker”方法=“ post” action =“”> group1:<input type type =“無線電” name =“ group1”值=“一個” /> group2:<input type type type type =“ radic” name =“ group1” group1“ group1” value =“ doble 3” />組3: type =“ text” id =“ intext” /> input 2:<input type =“ text” id =“ intext2” /> input 3:<input type =“ text =” idext3“ /> <input type type type type =” id submit =“ distressButton” dismitbutton“ vality” valit </body> </html>