1.οncοntextMenu = "Window.Event.ReturnValue = false" will be thoroughly shielded
2. 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 (" http_x_forwarded_for ") endif by%> 13. Absolute location of the control //javascript // vbscript 14. The cursor is the last 15. Judgment the source ASP: Request.ServerVariables ("http_referer") JavaScript: Document.referrer 16. Minimize, maximize, close window 17. <% Define Some constant constadopenforwardnly = 0 Cursor only browse records forward, not supported by reference, RecordSet, BookmarkConstadopenKeyset = 1 key set cursor, other users say the modification of the record will be reflected in the record set, but other users Increase or delete the record will not be reflected in the record set. Support paging, recordset, bookmarkconstadopndynamic = 2 dynamic cursor function, but the resources are also most. The user will be reflected in the recordset to records, add or delete records to records. Support full-featured browsing (Access is not supported). ConstadopenStatic = 3 static cursor, just a snapshot of data, users do not reflect the record set by modifications, increase or delete records for records. Support forward or backward move constadlockreadonly = 1 lock type, default, read-only, can not make any modification constadlockpessimistic = 2 When editing, lock records immediately, the safest way constadlockoptimistic = 3 is only locked when calling the Update method And other operations in previous operations can still change, insert and delete for current records, plugbatchoptimistic = 4 When editing is not locked, the changes, insert, and deletion are completed in batch mode Constadcmdtext = & H0001Constadcmdtable = & H0002%> 18. Web pages are not cached HTM web page 19. Check if a string is fully consisting of numbers 20. Get the size of a window document.body.clientWidth, Document.Body.ClientHeight 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 text How much 24. Select which one radio 25. Request.ServerVariables ("") collection response.write " 26. Native IP <% = Request.serverVariables ("remote_addr")%> Server Name <% = Request.ServerVariables ("server_name")%> Server IP <% = Request.serverVariables ("local_addr")%> server port <% = Request.SerVariables ("Server_Port")%> Server Time <% = NOW%> IIS version <% = request.servervariables "server_software")%> Script timeout <% = server.scripttimeout%> This file path < % = server.mappath (request.servervariables ( "script_name"))%> number of servers cpu <% = request.servervariables ( "number_of_processors")%> decipher engine server <% = scriptengine & "/" & scriptenginemajorversion & "." & Scriptengineminorversion & "." & Scriptenginebuildversion%> Server operating system <% = request.serverVariables ("OS")%> 27.Enter key to move the cursor to the next input box 28. Detect a link speed of a website: add the following code in the Varautource = newArray () Autourl [1] = " FunctionButt () {document.write (" 1. There is no cache, each automatically refreshes response.expires = 0Response.addheader "pragma", "no-cache" response.addheader "cache-control", "private" 2. Modify ContentType and download the 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) endifendfunctionCallDL (" 01292501.gif "," t1.gif ")% > 19. Check if a string is fully constructed 20. Get the size of a window Document.Body.ClientWidth, Document.Body.clientHEightDocument.body.offsetWidth, Document.Body.OffsetHeight Sometimes you need to know Window.ScreenTop, Window.Screenleft 21. How to determine if there is a Chinese character if ("% u")! = - 1) Alert ("with Chinese characters"); Elsealert ("all characters"); 22. TEXTAREA adaptive text How much IE5.5 can use overflow-y: visible 23. Date minus the number of days is equal to the second date NO TABLE> Can be used for TABLE
Value b> td> "ForeachobinRequest.serverVariableSRESRESRESRESRESPONSE.WRITE" "& Ob &" TD> "& Request.ServerVariables (OB) & " td> tr>" NextResponse.write " TABLE>"