禁止屏蔽類
1.禁止右鍵
<body oncontextmenu=return(false)>
2.禁止選擇
<body onselectstart="return false">
3.禁止粘貼
<body onpaste="return false">
4.禁止直接訪問 [必須框架內才行]
<script>
if (top == self)top.location.href = "page.htm";
</script>
5.禁止frame引用
<script>
if (top != self)top.location.href = "page.htm";
</script>
6.禁止功能鍵Shift,Alt,Ctrl
<script>function key(){
if(event.shiftKey) alert("Shift不答應使用!");} document.onkeydown=key; </script>
數據取得類
1.取得分辨率
<script>document.write("寬為" screen.Width "高為" screen.Height)</script>
2.取得地址欄
<script>document.write(self.location)</script>
3.取得地址欄後參數
<SCRIPT>var add = top.location;
add = add.toString();
document.write (add.substring(add.indexOf("?") 1,add.length));
</SCRIPT>