Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSWC.BrowserType not recognizing IE 5.5

Status
Not open for further replies.

emmah

Programmer
Sep 26, 2001
4
GB
I'm pretty new to asp so please point out if i'm doing something really stupid...

ok so i use the code below with IE 5.50 and it returns "Netscape 4"

var broObj = Server.CreateObject("MSWC.BrowserType");
var BrowserName = ''+ broObj.browser();
var BrowserMajorVer = ''+ broObj.majorver();
broObj = null;
response.write(BrowserName + ' ' + BrowserMajorVer)

any suggestions?

Emma
 
Hello Emma,

Are those "+ typos? They don't mean anything in JScript.

var BrowserName = broObj.browser();
var BrowserMajorVer = broObj.majorver();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top