JSFiddle - React, Tailwind, and code Playground

by Caleb Wong

HTML

<h1><a href="javascript:alert('hi')">test</a></h1>

JavaScript

var userAgent = navigator.userAgent.toLowerCase();
var isiPhone = (userAgent.indexOf('iphone') != -1) ? true : false;
if(userAgent.indexOf('ipod') != -1) isiPhone = false; // turn off taps for iPod Touches
clickEvent = isiPhone ? 'tap' : 'click';