我如何知道使用者所用的浏览器? - 编程吧

上一篇 | 下一篇

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

发布: 2006-7-25 21:28 | 作者: 未知 | 来源: 未知 | 查看: 30次

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

TAG: 编程

字号: | 推荐给好友

 

评分:0

我来说两句

seccode