| # | 功能 | 代碼 |
| 15 | 判斷上頁來源 | Request.ServerVariables("HTTP_REFERER") / JS `document.referrer` |
| 16 | 視窗最小化/最大化/關閉 | <object id=hh1 classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11"><param name=Command value=Minimize></object> | IE ActiveX,現代無效 |
| 17 | ADO 游標/鎖定常數 | 見下方常數表 | 必背 |
| 18 | 防頁面緩存 | Response.Expires=-1:Response.ExpiresAbsolute=Now()-1:Response.CacheControl="no-cache" | ASP 版 |
| 19 | 檢查純數字 | function checkNum(s){return !/\D/.test(s)} | JS 正則 |
| 20 | 取得視窗大小 | document.body.clientWidth / clientHeight | |
| 21 | 判斷含中文 | if (/[^\x00-\xff]/.test(s)) alert('含漢字') | 雙位元組字元檢測 |
| 22 | Textarea 自適應高度 | <textarea onpropertychange="this.style.posHeight=this.scrollHeight"> | IE 專屬 |
| 23 | 日期減天數 | new Date(dt).getTime() - days*86400000 | JS Date 運算 |
| 24 | 取得 Radio 選中值 | VBScript `For Each ob In radio1: If ob.checked Then ...` |
| 25 | 列印所有 ServerVariables | For Each k In Request.ServerVariables: Response.Write k & "=" & Request(k) & " " : Next |
| 26 | 本機/伺服器 IP | <%=Request.ServerVariables("REMOTE_ADDR")%> / `<%=Request.ServerVariables("LOCAL_ADDR")%>` |