简单的JavaScript函数是什么意思???

来源:百度知道 编辑:UC知道 时间:2024/06/01 06:13:43
代码如下:
<BODY onmouseup=document.selection.empty() oncontextmenu="return false"
onselectstart="return false" ondragstart="return false"
onbeforecopy="return false" oncopy=document.selection.empty() leftMargin=0
topMargin=0 onselect=document.selection.empty()>
我想问一下,这几个函数分别都是什么意思呢??谢谢了!!!

下面这些是事件
onmouseup 鼠标松开
oncontextmenu 显示右键菜单
onbeforecopy 在复制内容前
onselectstart 开始选择内容的时候
oncopy 复制内容的时候
onselect 选择内容的时候

return false,返回false,表示取消这些动作,作用就是上面这些操作都将无效。

TypeError: document.selection is not defined