ASP判断使用者用的浏览器-Request.ServerVariables

2009年11月25日 | 九创主题

ASP判断使用者用的浏览器-Request.ServerVariables

the Request object方法

<%

strBrowser=Request.ServerVariables("HTTP_USER_AGENT")
If Instr(strBrowser,"MSIE") < > 0 Then
Response.redirect("ForMSIEOnly.htm")
Else
Response.redirect("ForAll.htm")
End If

%>


转载文章请注明转载自:九创主题

标签: ,

留下回复

您必须登录才能发表评论。