0

I have an issue on my webpage, it's not running properly for some reason in firefox.

How do I alert Firefox users only with an alert/dialogue that there is an issue using their browser?

Spatial Digger
  • 1,883
  • 1
  • 19
  • 37
  • 2
    Does this answer your question? [How to detect Safari, Chrome, IE, Firefox and Opera browser?](https://stackoverflow.com/questions/9847580/how-to-detect-safari-chrome-ie-firefox-and-opera-browser) – David Feb 01 '21 at 20:03

1 Answers1

1

you can do the following thing:

<!DOCTYPE html>
<html>
<head>
</head>
<body>

<script type='text/javascript'>
    const isFirefox = typeof InstallTrigger !== 'undefined';
    if (isFirefox){
        alert('Danger!');  
    }
</script>
</body>
</html>

Hope that could help you!

J. Langer
  • 262
  • 3
  • 17