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 ?

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.