Mobile detection script

Is there a script you can add to to a Title to detect whether a user is on a mobile device or not? We are developing a program that will primarily be used on cell phones or tablets. However, if a user were to view it on a computer, I'd like it to show next/back buttons to replace the swipe functions, since obviously swiping would not work. Is this possible? Thanks!

Discussion (2)

Thank you!

Lectora does the browser detection for you and stores the result in a variable "BrowserType" that you can use. You can then show/hide the buttons based on the this variable.

Discussions have been disabled for this post