事件处理程序,(在页面上点击右键隐藏选择菜单)
1.第一种
解析:当 <body oncontextmenu = "return hideContextmenu()" > 中的return不用的时候,也就是
<body oncontextmenu = "hideContextmenu()" > 这种 则用 这条语句window.event.returnValue = false ;
2.第二种
事件处理程序,(在页面上点击右键隐藏选择菜单)
1.第一种
解析:当 <body oncontextmenu = "return hideContextmenu()" > 中的return不用的时候,也就是
<body oncontextmenu = "hideContextmenu()" > 这种 则用 这条语句window.event.returnValue = false ;
2.第二种
相关文章: