ITeye博客

当按钮按下时,禁止所有的输入按钮。

bulain · 2008-02-28 10:58 · view study · Markdown

当按钮按下时,禁止所有的输入按钮。

/**
 * Disable all click button
 */
function lockButtonControl() {
    var a = document.getElementsByTagName("td");
    for (var i=0;i<a.length;i++) {
        a[i].onclick = "";
        a[i].onkeydown = "";		
    }
}

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。