detect which browser the user is using javascript code example
Example: detect user browser javascript
if (navigator.userAgent.includes('Safari')) {
// the user is running Safari
// do something useful
}
if (navigator.userAgent.includes('Safari')) {
// the user is running Safari
// do something useful
}