繁体中文
设为首页
加入收藏
当前位置:ASP技术首页 >> XML相关 >> 我如何知道使用者所用的浏览器?

我如何知道使用者所用的浏览器?

2004-10-01 08:26:10  作者:  来源:互联网  浏览次数:9  文字大小:【】【】【
简介:答 使用the Request object方法 strBrowser=Request.ServerVariables("HTTP_USER_AGENT") If Instr(strBrowser,"MSIE") <> 0 Then Response.redirect("ForMSIEOnly.htm") ...

答 使用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

责任编辑:admin
相关文章