<% Response.write "1.οncοntextmenu =" window.event.returnvalue = false "will completely shield Right 3.οnpaste = "Returnfalse" is not allowed to paste 4.οcuepy = "Returnfalse;" oncut = "returnfalse;" Prevent copy 5. 6. 7. 8. I will always bring the frame 9. Prevent people from frame 10. 11. 12. How to check if the visitors use the agent <% ifrequest.servervariables <% ifrequest.servervariables <% iFrequest.ServerVariables <> "" "" "" "" "" "& _" true IP "& Request.serverVariables") Endif "%> <% response.write" 13. Absolute location of the control //javascript 14. The cursor is the last 15. Judgment the source ASP: Request.ServerVariables ("http_referer") Java Script: Document.referrer 16. Minimize, maximize, close window ConstadlockReadOnly = 1 lock type, default, read-only, can not make any modification constadlockpessimistic = 2 When editing, lock the record immediately, the safest way constadlockoptimistic = 3 is only locked in the UPDATE method, while the recording set is locked, while before other operations CONSTADLOCKBATCHOPTIMISTIC = 4 can still be changed, inserted, and deleted for current records, and records when editing is not locked, and change, insert, and delete is done in batch processing. Constadcmdtext = & H0001Constadcmdtable = & H0002 "%> 18. Web pages are not cached HTM web page 19. Check if a string is fully consisting of numbers 21. How to determine if it is a character if (/ [^ / x00- / xff] /g.test (s)) ALERT ("with Chinese characters"); Elsealert ("all characters"); 22. TEXTAREA Adaptive Writing How much 23. Date minus the number of days is equal to the second date 24. Select which one radio 25. Request.ServerVariables ("") collection response.write " 27.enter key allows the cursor to move to the next input box 28. Detect a link speed of a website: add the following code in the Varautource = newArray () Autourl [1] = " 29. Various styles of cursor Auto: Standard Cursor Default: Standard Arrows: Hand Cursor Wait: Wait Cursor TEXT: I-shaped Sports Vertical-TEXT: Level I Skal NOD DROP: Unable to Dragon Cursor Not-Allowed: Invalid Cursor Help: Help Cursor All-Scroll: Triangle Barrier Move: Moved CROSSHAIR: Ten Marker E-Resizen-ResizN ResizeW-Resizes-Resort-Resizesw-Resize 30. None of the local, automatically refresh Response.expires = 0Response. Addheader "Pragma", "No-Cache" Response.addheader "Cache-Control", "Private" 31. Modify ContentType and download GIF format <% FunctionDL (f, n) OneRrorResumenext sets = createobject ( "adodb.stream") s.mode = 3s.type = 1s.opens.loadfromfile (server.mappath (f)) iferr.number> 0thenresponse.writeerr.number & ":" & err.descriptionelseresponse.contenttype = " Application / X-Gzip "response.addheader" Content-Disposition: "," attachment; filename = "& nresponse.binaryWrite (S.Size) endifendfunction CallDL ("01292501.GIF", "T1.GIF")%> 32. Check if a string is fully consisting of numbers 33. Get a window size document.body.clientWidth, Document.Body.clientHeightDocument.body.offsetWidth, Document.Body.OffsetHeight Sometimes you need to know Window.ScreenTop, Window.Screenleft 34. How to determine whether there is a Chinese character if ("% u")! = - 1) Alert ("with Chinese characters"); Elsealert ("all characters"); 35. TEXTAREA Adaptive Writing How much IE5.5 can use overflow-y: Visible no table> may be used to table 2. Value b> td> "ForeachobinRequest.serverVariableSRESRESRESRESRESPONSE.WRITE" "& Ob &" TD> "& Request.ServerVariables (OB) & " td> tr>" Next "" TABLE> "26. Native IP <% = Request.serverVariables (" remote_addr ")%> Server Name <% = Request.ServerVariables (" Server_name ") %> Server IP <% = Request.ServerVariables ("local_addr")%> server port <% = request.servervariables ("server_port")%> server time <% = no%> IIS version <% = request.servervariables "Server_software ")%> Script timeout <% = server.scripttimeout%> This file path <% = server.mAppath (Request.ServerVariables (" script_name ")%> Server CPU number <% = Request.ServerVariables (" Number_of_Processors ") %> Server Execution Engine <% = Scriptengine & "/" & Scriptenginemajorversion & "." & Scriptengineminorversion "." & Scriptenginebuildversion%> server operating system <% = Request.ServerVariables ("OS")%>