ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Browser functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
BrowserSlice (Function)
In french: NavigateurTranche
Warning
From version 24, BrowserBlade is kept for backward compatibility. This function has been replaced with BrowserSlice.
Returns the number of the slice displayed in a page in Responsive Web Design mode.
Example
// Si la tranche affichée est la tranche "Tablette"
IF BrowserSlice() = 2 THEN
	...
END
Syntax
<Result> = BrowserSlice()
<Result>: Integer
Number of current slice.
Note: If the page does not use Responsive Web Design, <Result> is 1.
Remarks
  • The number of default slice is 1.
  • Then, the slice number increases for each following slice:
    • If "Desktop" is the default slice, the numbers increase from the largest slice ("Desktop") to the smallest slice ("Mobile").
    • If "Mobile" is the default slice, the numbers increase from the smallest slice ("Mobile") to the largest slice ("Desktop").
Component: WDJS.DLL
Minimum version required
  • Version 22
Comments
Click [Add] to post a comment

Last update: 03/28/2025

Send a report | Local help