转自:http://blog.youkuaiyun.com/ahwr24/article/details/6870377
禁止另存代码:
<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">
<H1>javascript实现加载页面全屏以及禁用鼠标右键和选取功能</H1><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966">6. 让表单没有凹凸感</SPAN>
</P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966"></SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966">7. 去掉滚动条 </SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966">去掉竖条: </SPAN></P><P
style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966"><body style="overflow:scroll;overflow-y:hidden"> </SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966"></body> </SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR:
#339966">去掉横条: </SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966"><body style="overflow:scroll;overflow-x:hidden"> </SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966"></body> </SPAN></P><P style="TEXT-ALIGN:
left"><SPAN style="BACKGROUND-COLOR: #339966">两个都不要:</SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966"><body scroll="no"> </SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966"></body></SPAN></P><P style="TEXT-ALIGN:
left"><SPAN style="BACKGROUND-COLOR: #339966">13. 网页将不能被另存为 </SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966"><noscript><iframe src=*.html></iframe></noscript> </SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR:
#339966">14. 单击鼠标右键弹出添加收藏夹对话框 </SPAN></P><P style="TEXT-ALIGN: left"><SPAN style="BACKGROUND-COLOR: #339966">在<body></body>之间加上如下代码: </SPAN></P><SPAN style="BACKGROUND-COLOR: rgb(51,153,102)">22. window.open() 支持环境,语法,参数,例子(详细</SPAN><P style="TEXT-ALIGN: left"><SPAN
style="BACKGROUND-COLOR: #339966"><SPAN style="BACKGROUND-COLOR: #339966"><SPAN style="BACKGROUND-COLOR: #339966">9、终极应用--弹出的窗口之Cookie控制】</SPAN></SPAN></SPAN></P>