JS实现JSP页面,鼠标禁止另存,复制,右键,选取

 
禁止另存代码:


 <noscript> 
<iframe src="/*>";</iframe> 
</noscript> 


禁止复制代码:

 <body  
oncontextmenu='return false' 
ondragstart='return false' 
onselectstart ='return false' 
onselect='document.selection.empty()' 
oncopy='document.selection.empty()' 
onbeforecopy='return false' 
onmouseup='document.selection.empty()'>

禁止右键:

 <script language="JavaScript">document.oncontextmenu = function() { return false;}</script>

禁止选取:
<body oncontextmenu="return false" ondragstart="return false" 
onselectstart ="return false" onselect="document.selection.empty()" oncopy="document.selection.empty()" onbeforecopy="return false"onmouseup="document.selection.empty()> 

禁止粘贴:
 <input type=text onpaste="return false">  
 
FROM:http://www.4ucode.com/Study/Topic/656936
 
 

javascript实现加载页面全屏以及禁用鼠标右键和选取功能

6. 让表单没有凹凸感

7. 去掉滚动条

去掉竖条:

<body style="overflow:scroll;overflow-y:hidden">

</body>

去掉横条:

<body style="overflow:scroll;overflow-x:hidden">

</body>

两个都不要:

<body scroll="no">

</body>

13. 网页将不能被另存为

<noscript><iframe src=*.html></iframe></noscript>

14. 单击鼠标右键弹出添加收藏夹对话框

在<body></body>之间加上如下代码:

22. window.open() 支持环境,语法,参数,例子(详细

9、终极应用--弹出的窗口之Cookie控制】

FROM:  http://www.4ucode.com/Study/Topic/740387
 
 
 
 
 

你可能感兴趣的:(JS实现JSP页面,鼠标禁止另存,复制,右键,选取)