Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to disable the flash/blink on the iPad/iPhone when an onclick is fired?

So I have an area that has an onclick event. When clicked on a regular browser it does not show any visual change, but when it is clicked on the iPad/iPhone it makes a flash/blink. Is there any way to stop it from doing this on the iPad/iPhone?

Here is an example similar to what I am doing: http://jsfiddle.net/zb5xn/.

like image 707
Lu_Bu Avatar asked Jan 24 '12 16:01

Lu_Bu


1 Answers

Try this:

body * {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
like image 144
Nick Lockwood Avatar answered Sep 28 '22 04:09

Nick Lockwood