How to check device type is mobile on client side scripts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2018 07:46 AM
Hello,
Can anyone tell me what function to use to test device type == mobile in client side script? Like for example we use gs.isMobile() to test devices is mobile on server side script.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2018 07:53 AM
You can use gs.isMobile() on a display BR and set a scratchpad variable based on this. In the client script just read that scratchpad value 🙂
-Anurag