Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
browser and OS identifier
Old 08-09-2007, 11:47 PM browser and OS identifier
Junior Talker

Posts: 3
Trades: 0
i'm making a page with embedded video in it but instead of have people select the format they want i'd like it just to play automatically based on their browser/OS...i've seen things in people's signatures when i've browsed forums where it tells what browser and OS you're running, so i was thinking of using code like that to have the correct video format automatically play...can anyone share a helping link or some code? thanks,
-harry
hairyharry is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-10-2007, 02:35 AM Re: browser and OS identifier
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
navigator.userAgent.

https://addons.mozilla.org/en-US/firefox/addon/59
http://msdn2.microsoft.com/en-us/library/ms537503.aspx
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 08-10-2007, 02:42 AM Re: browser and OS identifier
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
navigator.browserVersion might give you more of what you want.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 08-10-2007, 01:51 PM Re: browser and OS identifier
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Uh, this is a really dumb question, but I don't know much about java script.

Does this "navigator" object you guys are talking about exist in IE and FireFox and, you know, browsers that aren't Netscape Navigator?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to browser and OS identifier
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15631 seconds with 12 queries