Browser Function

The Browsr function returns the HTTP_USER_AGENT of the request.serverVariables collection. Browsr returns the complete name of the currently used browser.

string = Browsr()

Example Usage:
dim a
a = Browsr
if InStr( a, "MSIE" ) then
	 ' browser is Internet Explorer
	 ' browser is some other type...
end if
ASP Source Code:
Private Function Browsr()
	Browsr = Request.ServerVariables("HTTP_USER_AGENT")
End Function

The Result

You are not using Internet Explorer
User Agent provided is: CCBot/2.0 (

asp functions library VBScript VBSCRIPT active server pages aps iis IIS pws PWS newbie

Back To Top
© 1998 - 2018 | My3C's

Version 7.2 | Advertise on this site