Remove Gray Highlight When Tapping Links in Mobile Safari
-webkit-tap-highlight-color: rgba(0,0,0,0);
And then to allow :active styles to work in your CSS on a page in Mobile Safari:
document.addEventListener("touchstart", function(){}, true);
-webkit-tap-highlight-color: rgba(0,0,0,0);
And then to allow :active styles to work in your CSS on a page in Mobile Safari:
document.addEventListener("touchstart", function(){}, true);
It might not be obvious to everyone, but this also works for Android default browsers as well, since they are also Webkit-based.
works great on object tag, thx !
Awesome.!! many many thanks!!
work great
thanks