php - Detecting browser/version with javascript vs. detecting on server side? -


we building bookmarklet, , wondering if can detect on client side javascript browser , version number more accurately doing on server side using agent.

we push detection results server main request.

the questions is, can approach work better , more accurate? or both can same mistakes , javascript computes user-agent (which can changed plugin/proxy).

important

please don't forget building bookmarklet , can't load fancy tools modernizr , jquery doesn't work out fast.

i might wrong, think js uses user agent. far haven't seen js browser detect code doesn't compute user agent. correct me if wrong. if helps try jquery $.support property detection/support particular features need rather relying on browser name , version. easy fake user-agent.

according this navigator object uses user-agent header.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -