Browser types

Results 1 to 2 of 2

Thread: Browser types

  1. #1
    Join Date
    Dec 1969

    Default Browser types

    &nbsp;<BR>How do I determine which browser user is using to access to my asp page? (e.g. netscape or Internet Explore).<BR><BR>TIA<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Browser types

    Try this, I used this and it worked. I got this from MSDN online:<BR><BR> // This function returns Internet Explorer&#039s major version number,<BR> // or 0 for others. It works by finding the "MSIE " string and<BR> // extracting the version number following the space, up to the decimal<BR> // point, ignoring the minor version number<BR> &#060;SCRIPT LANGUAGE="JavaSCRIPT"&#062;<BR> function msieversion()<BR> {<BR> var ua = window.navigator.userAgent<BR> var msie = ua.indexOf ( "MSIE " )<BR><BR> if ( msie &#062; 0 ) // If Internet Explorer, return version number<BR> return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))<BR> else // If another browser, return 0<BR> return 0<BR><BR> }<BR> &#060;/SCRIPT&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts