1. 將徹底屏蔽鼠標右鍵
oncontextmenu=”window.event.returnValue=false”< table border oncontextmenu=return(false)>< td>no< /table> 可用于 Table
2. 取消選取、防止復制
<span class="tag" style="color:rgb(0,0,128)">< <span class="attribute" style="color:rgb(0,128,128)">body</span> <span class="attribute" style="color:rgb(0,128,128)">onselectstart</span>=<span class="value" style="color:rgb(221,17,68)">”return</span> <span class="attribute" style="color:rgb(0,128,128)">false</span>”></span>
3.JS不允許粘貼
onpaste=”return false”
4. JS防止復制
oncopy=”return false;” oncut=”return false;”
5. IE 地址欄前換成自己的圖標
<span class="tag" style="color:rgb(0,0,128)">< <span class="attribute" style="color:rgb(0,128,128)">link</span> <span class="attribute" style="color:rgb(0,128,128)">rel</span>=<span class="value" style="color:rgb(221,17,68)">”Shortcut</span> <span class="attribute" style="color:rgb(0,128,128)">Icon</span>” <span class="attribute" style="color:rgb(0,128,128)">href</span>=<span class="value" style="color:rgb(221,17,68)">”favicon.ico”</span>></span>
在文件的根目錄放進去這個圖片,后綴修改成ico就可以了
6.可以在收藏夾中顯示出你的圖標
<span class="tag" style="color:rgb(0,0,128)">< <span class="attribute" style="color:rgb(0,128,128)">link</span> <span class="attribute" style="color:rgb(0,128,128)">rel</span>=<span class="value" style="color:rgb(221,17,68)">”Bookmark”</span> <span class="attribute" style="color:rgb(0,128,128)">href</span>=<span class="value" style="color:rgb(221,17,68)">”favicon.ico”</span>></span>
7.關閉輸入法
<span class="tag" style="color:rgb(0,0,128)">< <span class="attribute" style="color:rgb(0,128,128)">input</span> <span class="attribute" style="color:rgb(0,128,128)">style</span>=<span class="value" style="color:rgb(221,17,68)">”ime-mode:disabled”</span>></span>
8. 永遠都會帶著框架