Skip to main content
Nintex Community Menu Bar
Question

Determine page type in javascript?

  • July 10, 2024
  • 2 replies
  • 35 views

Forum|alt.badge.img+18

Hi Team!

Is there a method I can use in javascript to determine if a page is Mobile or Desktop?

This topic has been closed for replies.

2 replies

Forum|alt.badge.img+13

You can check whether “skuid.mobile” is defined — if it is, you’re in Mobile, otherwise in Desktop, e.g.

var isMobile = !!skuid.mobile;
if (isMobile) {

}


Forum|alt.badge.img+18
  • Author
  • July 10, 2024

Nice. Thanks!