Block prohibited
1. Right-click Disabled
<Body oncontextmenu = return (false)>
2. Do not select
<Body onselectstart = "return false">
3. Disable pasting.
<Body onpaste = "return false">
4. prohibit direct access [only within the Framework]
<Script>
If (top = self) top. location. href = "page.htm ";
</Script>
5. Disable frame reference
<Script>
If (top! = Self) top. location. href = "page.htm ";
</Script>
6. Disable function keys Shift, Alt, Ctrl
<Script> function key (){
If (event. shiftKey) alert ("Shift does not agree to use! ");} Document. onkeydown = key; </script>
Data Acquisition
1. Get resolution
<Script> document. write ("the Width is" screen. Width "and the Height is" screen. Height) </script>
2. Get the address bar
<Script> document. write (self. location) </script>
3. Get the parameters in the address bar
<SCRIPT> var add = top. location;
Add = add. toString ();
Document. write (add. substring (add. indexOf ("? ") 1, add. length ));
</SCRIPT>