Help / WLanguage / WLanguage functions / Web-specific functions / Browser functions
  • Examples of browser names
  • Pre-launched sessions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Returns the name of the browser of the Web user ("user agent"). The browser name is returned by the navigation software of the Web user.
NameOfBrowser is string
NameOfBrowser = BrowserName()
IF Position(NameOfBrowser, "MSIE") <> 0 THEN
// The browser is Internet Explorer
// The browser can be Netscape, Mozilla, Opera ...
<Result> = BrowserName()
<Result>: Character string
Name of the browser of the Web user.

Examples of browser names

The name returned changes according to the version and to the browser. Some examples of names returned for the most common browsers:
  • Internet Explorer 6: Mozilla/4.0 (compatible;MSIE 6.0;Windows NT 5.1;SV1;.NET CLR 1.1.4322)
  • Internet Explorer 11: Mozilla/5.0 (Windows NT 6.1; Win64; x64; Trident/7.0; rv:11.0) like Gecko
  • Edge on Windows 10: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
  • Edge on Windows 10 Mobile: Mozilla/5.0 (Android 4.2.1; NOKIA; Lumia 1320) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Mobile Safari/537.36 Edge/13.10581
  • FireFox 44.0: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0"
  • Google Chrome 47 (Windows version): Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.58 Safari/537.36
  • Safari (MacOS version): Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7
  • Safari on iPhone: Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1

Pre-launched sessions

If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initializing the project after connection to the site" event.
Component: wd290page.dll
Minimum version required
  • Version 9
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help