check browser with javascript code example
Example 1: detect user browser javascript
if (navigator.userAgent.includes('Safari')) {
// the user is running Safari
// do something useful
}
Example 2: browser version check for chrome or firefox typescript
browser version check for chrome or firefox typescript