Skip to content

Instantly share code, notes, and snippets.

@cliftonlabrum
Created September 23, 2013 16:29
Show Gist options
  • Save cliftonlabrum/6673157 to your computer and use it in GitHub Desktop.
Save cliftonlabrum/6673157 to your computer and use it in GitHub Desktop.
When you click on part of a webView that is either a link or otherwise made clickable with JS, the clickable area turns gray (touch any link in Safari on your iPhone to see this). I didn't want this to happen because I want my webView to behave like it's a native component. This will turn it off.
<script type="text/javascript">
document.documentElement.style.webkitTapHighlightColor = "rgba(0,0,0,0)";
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment