Home >Backend Development >PHP Tutorial >Collection of classic codes_PHP tutorial
Collection of classic codes
1. oncontextmenu="window.event.returnvalue=false" will completely block the right mouse button
no table> Can be used for Table 2. Cancel selection and prevent copying 3. onpaste="return false" No pasting is allowed 4. oncopy="return false ;" oncut="return false;" Prevent copying 5. Replace the IE address bar with your own icon 6. < link rel="Bookmark" href="favicon.ico"> You can display your icon in your favorites 7. Turn off the input method 8. Always carry frames 9. Prevent being framed 10. The webpage will not be saved as 11. onclick="window.location = 'view-source:'+ 'http://www.csdn.net/'"> 12. How to use asp to check whether the visitor uses a proxy <% if Request.ServerVariables("HTTP_X_FORWARDED_FOR")<>"" then response.write "You passed the proxy server,"& _ "The real IP is"&Request .ServerVariables("HTTP_X_FORWARDED_FOR") end if %> 13. Get the absolute position of the control file://javascript file://VBScript |