I need to write a javascript function ,or any event to detect whether the salesforce app is being accessed from a desktop or sf1 app can you help me on this ?
1 Answer
The answer on the post below checks if the user is currently using desktop or salesforce1 within a visualforce page. Hope this fits your requirements.
Here's the post from stackexchange forum: Detect if Visualforce Page is in Salesforce1