这有个按钮,当我点击它,响应事件之后,继续点击也不能响应事件了 用js怎么写 求高手指教
------解决方案--------------------
document.getElementById("id").disabled = false;
------解决方案--------------------
+++
document.getElementById("id").disabled = false;
------解决方案--------------------
------解决方案--------------------
- HTML code
<html><head><title>XXXXXX</title><script language="javascript">var count = 0;function test() { if (count == 0) { alert("only once"); } count++;}</script></head><body><input type="button" value="test" onclick="test();" /></body></html>