Go to: Articles List

Simple Browser Detection

     To test to see which browser your users are using try this simple code:

If InStr(Request.ServerVariables("HTTP_USER_AGENT"),"MSIE") Then
     Response.Write("Your browser is Internet Explorer!")
Else If InStr(Request.ServerVariables("HTTP_USER_AGENT"),"Mozilla") Then
     Response.Write("Your browser is Netscape!")
Else
     Response.Write("Your browser is other than Internet Explorer and Netscape.")
End If
End If