98.0k views
4 votes
you want to enhance your Website visitors' experience. To do this, you need to know the type of browser that each visitor to your Website is using. You can then automatically direct each user to the proper page for that browser. How can you accomplish this most efficiently?

User Omolara
by
5.3k points

1 Answer

2 votes

Answer: Detect user agent

Step-by-step explanation:

Although is not recommended to use this method, as is better for usability and accessibility the implementation of feature detection and Progressive enhancement in the modern web, it is possible to detect the browser by sniffing the user agent string to detect which browser is being used. The part you would look to distinguish each browser is found in the Rendering Engine and the values you will get are: Gecko, Webkit, Presto, Blink.

User FJam
by
5.4k points