有时候我们在写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函数返回值、asp自定义函数返回值、asp 函数 多个返回值、asp 转向、asp.net 转向,以便于您获取更多的相关知识。
时间: 2024-09-08 14:49:00