摘要:
OnContextMenu事件2011-10-11 10:20:35|分类:js事件|字号订阅用oncontextmenu事件单禁用右键菜单一个页面中,BODY中用oncontextmenu='return false'来取消鼠标右键;在JS中设置oncontextmenu='return true'用window.document.oncontextmenu = function(){ return false;}onconTextmenu=window.event.returnValue=false;右键菜单禁用,用这个可以禁止复制。在<body> 阅读全文
posted @ 2012-10-30 14:40
大脸
阅读(14771)
评论(2)
推荐(2)
摘要:
Js代码functiongetInfo(){vars="";s+="网页可见区域宽:"+document.body.clientWidth;s+="网页可见区域高:"+document.body.clientHeight;s+="网页可见区域宽:"+document.body.offsetWidth+"(包括边线和滚动条的宽)";s+="网页可见区域高:"+document.body.offsetHeight+"(包括边线的宽)";s+="网页正 阅读全文
posted @ 2012-10-30 11:46
大脸
阅读(502)
评论(0)
推荐(1)

浙公网安备 33010602011771号