Search...
formFactor
Gets what kind of device is being used to view the page.
Description
Note: This property only checks the site visitor's device, and not which Editor X breakpoint they are using.
The formFactor
property gets one of:
"Desktop"
: When viewed in a desktop browser."Mobile"
: When viewed in a mobile browser."Tablet"
: When viewed in a tablet browser.
Type:
stringRead Only
Was this helpful?
Get a device's form factor
Copy Code
1import wixWindowFrontend from 'wix-window-frontend';23// ...45let formFactor = wixWindowFrontend.formFactor; // "Mobile"