Platforms to show: All Mac Windows Linux Cross-Platform

Back to HTMLViewer class.

HTMLViewer.IENavigatorUserAgentMBS as string   Deprecated

Type Topic Plugin Version macOS Windows Linux iOS Targets
method HTMLViewer Win MBS Win Plugin 7.8 ❌ No ✅ Yes ❌ No ❌ No Desktop only
This item is deprecated and should no longer be used. You can use methods in IENavigatorMBS class instead.
Retrieves a string equivalent to the HTTP user-agent request header.

The HTTP user-agent request header contains information about compatibility, the browser, and the platform name. For more information about the browser, see the IENavigatorappNameMBS property. For more information about the platform, see the IENavigatorappVersionMBS property.

The IENavigatoruserAgentMBS property dynamically returns a different value depending on the browser and platform versions. For example, Microsoft Internet Explorer 6 returns the following string for Microsoft Windows XP.

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Example value: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"

Like other plugin function, this can only work if a page has been loaded. Xojo won't create the internal htmlviewer object before you load a page.

Some examples using this method:

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...