您的位置:首页 > Web前端 > JavaScript

javascript 小知识点(1)

2008-05-29 10:01 337 查看
操作表格 document.all.tbl1.rows[0].cells[1].innerHTML="";

//屏蔽右键系统菜单
document.getElementById("ASPxRoundPanel1_ASPxGridView1").oncontextmenu=function(event) {
    if (document.all) window.event.returnValue = false;
    else event.preventDefault();
};
//删除提示
document.getElementById("ASPxRoundPanel1_ASPxGridView1").onmouseup=function(oEvent) {
    if (!oEvent) oEvent=window.event;
    if (oEvent.button==2) {
      if(confirm('你确定要删除吗?'))
      {
    ASPxGridView1.GetRowValues(ASPxGridView1.GetFocusedRowIndex()
,"id;ErrContext",SingleClick);
      }
    }
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  javascript function