How to Get Browser and Version

Workarounds and usability notes.

How to Get Browser and Version

Postby Clifton » Tue Aug 05, 2014 7:59 am

UNDOCUMENTED POWERPAC FEATURE:
  • To get the client browser name, use the execute script action:
    exeJavascriptDirect( "pgBrowser" ); store return value in [ yourVariable ]
    The above function will return "MSIE" or "Firefox" or "Safari".
  • To get the IE browser version, use the execute script action:
    exeJavascriptDirect( "pgBrowserVer" ); store return value In [ yourVariable ]
    The above function will return an integer corresponding to the MSIE browser version (i.e.: 11). For non-MSIE browsers, this always returns 0 as the version is not tracked internally by the PowerPac for HTML 5 compliant browsers.
Generally, you may only need the ability to know the client browser and version when backwards support is required for IE7 or IE8.
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron