文章詳情頁
ASP 信息提示函數(shù)并作返回或者轉(zhuǎn)向
瀏覽:331日期:2022-06-05 09:13:24
有時(shí)候我們在寫asp的時(shí)候需要給用戶一些反饋信息,這個自定義的返回信息函數(shù),很方便大家使用
"************************ "子程序名:信息提示窗口 "功能:信息提示,并作返回或者轉(zhuǎn)向 "參數(shù): "str 提示字符串 "stype 處理類型:Back 返回 GoUrl 轉(zhuǎn)向 Close 關(guān)閉 "url 轉(zhuǎn)向方向 "************************ 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
具體的使用方法就不說了,很簡單
標(biāo)簽:
ASP
相關(guān)文章:
1. ASP刪除img標(biāo)簽的style屬性只保留src的正則函數(shù)2. ASP實(shí)現(xiàn)加法驗(yàn)證碼3. ASP中格式化時(shí)間短日期補(bǔ)0變兩位長日期的方法4. ASP.NET延遲調(diào)用或多次調(diào)用第三方Web API服務(wù)5. Spring使用AspectJ的注解式實(shí)現(xiàn)AOP面向切面編程6. ASP基礎(chǔ)知識Command對象講解7. ASP新手必備的基礎(chǔ)知識8. ASP基礎(chǔ)入門第二篇(ASP基礎(chǔ)知識)9. chat.asp聊天程序的編寫方法10. ASP編碼必備的8條原則
排行榜
