0

User-Agent String

Is it possible to get the user-agent string in code, like you would in a web browser with navigator.userAgent?

I know the navigator object doesn't exist, but I want to know if there is an equivalent.

by
2 Replies
  • QUOTE (Steve @ Apr 20 2011, 05:38 AM) <{POST_SNAPBACK}>
    Is it possible to get the user-agent string in code, like you would in a web browser with navigator.userAgent?

    I know the navigator object doesn't exist, but I want to know if there is an equivalent.

    Currently, there isn't an API to get the user-agent string. It will be in this form:

    CODE
    "Mozilla/5.0 (Vizio; U; Linux; US) Konfabulator/5.4.8"

    Out of curiousity, why do you need to know it in the widget?
    0
  • QUOTE (Benjamin Toll @ Apr 20 2011, 05:26 PM) <{POST_SNAPBACK}>
    Out of curiousity, why do you need to know it in the widget?

    I don't. It was a dumb question on my part.

    I thought I might need to send that info to our tracking software, but it's being sent anyways with the request.
    0

Recent Posts

in General - Yahoo! TV Widgets