Blocking class 1. disable right-click bodyoncontextmenu = return (false) 2. disable bodyonselectstart = "returnfalse" 3. disable bodyonpaste = "returnfalse" 4. direct access to [within the framework is prohibited] scriptif (top = s
Block prohibited
1. right-click disabled
2. do not select
3. disable pasting.
4. direct access prohibited [within the framework is required]
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 the function keys Shift, Alt, Ctrl
Script function key (){
If (event. shiftKey) alert ('shift does not promise the application! ');} Document. onkeydown = key; script
Data acquisition
1. get resolution
Script document. write ('width is 'screen. width', 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
Common special effects
1. home remote controller
File 1. (t1.html)