JSFiddle - React, Tailwind, and code Playground

by jonathanmh

HTML

<div id="mailto_link"></div>

JavaScript

var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
if (is_chrome == true) {
  var element = document.getElementById("mailto_link");
  var a = document.createElement('a');
a.setAttribute('href', 'https://chrome.google.com/webstore/detail/mailto-for-gmail/dgkkmcknielgdhebimdnfahpipajcpjn/details?hl=en');
a.appendChild(document.createTextNode('Du nutzt Chrome, installiere dies, wenn der email-link nicht funktioniert'));
  element.appendChild(a);
}