AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones específicas de la Web / Funciones del navegador
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Returns the type of browser used by the Web user.
Ejemplo
// Affiche une page particulière pour IE9 
IF BrowserType() = BrowserTypeInternetExplorer THEN
	SWITCH BrowserVersion(BrowserMajorVersion)
	CASE 9
		PageDisplay(PAGE_Fiche_IE9)
	OTHER CASE
		PageDisplay(PAGE_Fiche_IE)
	END
ELSE
	PageDisplay(PAGE_Fiche)
END
Sintaxis
<Result> = BrowserType()
<Result>: Integer constant
Type of browser used by the Web user to display the site:
BrowserTypeChromeChrome.
BrowserTypeEdgeMicrosoft Edge.
BrowserTypeFirefoxFirefox.
BrowserTypeGeckoBrowser that uses the Gecko engine (other than Firefox).
BrowserTypeInternetExplorerInternet Explorer.
BrowserTypeOperaOpera.
BrowserTypeRobotRobot of search engine.
BrowserTypeSafariSafari.
BrowserTypeUnknownThe browser used is unknown or the information is missing.
BrowserTypeWebKitBrowser that uses the WebKit engine (other than Chrome and Safari).
Observaciones
  • The function returns the BrowserTypeUnknown constant if the browser used by the Web user is unknown.
  • For a dynamic site (non-AWP site), the returned value corresponds to the browser used when connecting to the site. If the user changes browser (via a copy-paste of URL in another browser for example), this change is not detected.
  • 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 "Initialization when connecting to a pre-launched session" event..
Componente: wd300page.dll
Versión mínima requerida
  • Versión 16
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 02/07/2024

Señalar un error o enviar una sugerencia | Ayuda local