一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

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

时间:2008-01-12 编辑:简简单单 来源:一聚教程网

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

热门栏目