<!DOCTYPE html><html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script type="text/javascript">// 按钮防止短时间多次点击//全局变量标识var CLICKTAG = 0;function button_onclick(pElement){if (CLICKTAG == 0) { CLICKTAG = 1; pElement.disabled=true;// 等待3s后重置按钮可用setTimeout(function () { CLICKTAG = 0 ; pElement.disabled=false;}, 3000); }}</script></head><body><input type="button" style="width:125px;height:25px;" value = "点击" οnclick="button_onclick(this)" ></button></body></html>
100字范文,内容丰富有趣,生活中的好帮手!