I want to remove this button and its functionality for Firefox and Safari, but not on Chrome
<button id="start" class="left tooltipped" data-tooltip="Record" style="padding: 16px;border-radius: 100%;position: relative;background: #EB455F;top: 12px;"></button>
2
Answers
Hi You can detect the browser and add a class to your button or remove the button and functionality.
Working Example: https://codepen.io/sethuramancbe/pen/abRBmGd
You can use a
regular expression
to match any instance of "Firefox/" in the user agent string.This will match all versions of Firefox, regardless of the operating system or other details of the user agent string.