javascript for detect browser

javascript for detect browser <script language=”javascript” type=”text/javascript”> var nVer = navigator.appVersion; var nAgt = navigator.userAgent; var browserName = navigator.appName; var fullVersion = ”+parseFloat(navigator.appVersion); var majorVersion = parseInt(navigator.appVersion,10); var nameOffset,verOffset,ix; // In Opera, the true version is after “Opera” or after “Version” if ((verOffset=nAgt.indexOf(“Opera”))!=-1) { browserName = “Opera”; fullVersion = nAgt.substring(verOffset+6); if ((verOffset=nAgt.indexOf(“Version”))!=-1) fullVersion = nAgt.substring(verOffset+8);

Read More