文章詳情頁
ASP 信息提示函數并作返回或者轉向
瀏覽:447日期:2022-06-05 09:13:24
有時候我們在寫asp的時候需要給用戶一些反饋信息,這個自定義的返回信息函數,很方便大家使用
"************************ "子程序名:信息提示窗口 "功能:信息提示,并作返回或者轉向 "參數: "str 提示字符串 "stype 處理類型:Back 返回 GoUrl 轉向 Close 關閉 "url 轉向方向 "************************ Sub MsgBox(str,stype,url) response.write "<script language=javascript>" response.write "alert(""&str&"");" select case stype case "Back" response.write "history.go(-1);" case "GoUrl" response.write "window.location=""&url&""" case "Close" response.write "window.close()" end select response.write "</script>" End Sub
具體的使用方法就不說了,很簡單
標簽:
ASP
相關文章:
1. asp批量添加修改刪除操作示例代碼2. ASP實現加法驗證碼3. chat.asp聊天程序的編寫方法4. IIS Express 取代 ASP.NET Development Server的配置方法5. ASP基礎入門第三篇(ASP腳本基礎)6. asp.net core應用docke部署到centos7的全過程7. asp中response.write("中文")或者js中文亂碼問題8. ASP動態網頁制作技術經驗分享9. ASP.NET MVC使用jQuery的Load方法加載靜態頁面及注意事項10. asp(vbs)Rs.Open和Conn.Execute的詳解和區別及&H0001的說明
排行榜