check user browser 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
}