按钮无效函数

<script>

function submitonce(theform){
    //if IE 4+ or NS 6+
    if (document.all||document.getElementById){
        //screen thru every element in the form, and hunt down "submit" and "reset"
        for (i=0;i<theform.length;i++){
            var tempobj=theform.elements[i]
            if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
            //disable em
            tempobj.disabled=true
        }
    }
}
</script>

你可能感兴趣的:(IE)