Confirmed users
1,567
edits
|  (→Search) | |||
| Line 105: | Line 105: | ||
|      navigator.platform |      navigator.platform | ||
| You may want to search for keywords such as Gecko, WebKit, iPad, etc. There is no guarantee, you will find right away the answer. It becomes very hard sometimes when the JavaScript code has been minified. Another place which might gives hints of User Agent detection is the keyword  | |||
| window.location | |||
| that will be used after testing a capability of the device (UA, screen size, etc.). If you want to play with it, just open the Web Console in Firefox Developer Tools, and type: | |||
| window.location = 'http://mozilla.org/' | |||
| You will be redirected to the Mozilla home page. | |||
| == Redirection based on Geolocation == | == Redirection based on Geolocation == | ||