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

热门教程

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

时间:2022-06-30 09:27:22 编辑:袖梨 来源:一聚教程网

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

热门栏目