Determining user device

Determining user device

I need to be able to determine whether the user is accessing the form through a desktop or mobile browser.   Is there a way to determine user client?  If not, is there a way to read the url of a page using deluge scripting?  I know that when a user access the form through a mobile browser, there is a " form-mobile " in the string.

The reason I need this functionality is because Zoho Creator only allows the user to take a picture using their camera through mobile browsers, but I need to create the functionality using an iframe in desktop browsers.