ASP 信息提示函数并作返回或者转向
来源:爱站网时间:2020-02-05编辑:网友分享
在ASP开发过程中,我们都会根据错误提示查找错误,然后进行相应的修改,直到没有错误为止,下面是爱站技术频道小编带给大家的ASP 信息提示函数并作返回或者转向,一起来看看吧!
在ASP开发过程中,我们都会根据错误提示查找错误,然后进行相应的修改,直到没有错误为止,下面是爱站技术频道小编带给大家的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 信息提示函数并作返回或者转向,我们都了解了具体的操作方法,我们最后的目的都是希望能学习到我们想要的知识,希望大家能一如既往的支持爱站技术频道。
