views:

56

answers:

1

It could be a HTML question as well...

I have a UIWebView with a page (from the hand made html string) loaded. For the url link on the page, if you tap on it, it has gray as background, which I think is the default behavior on iPhone.

Is there a way to programmingly (thru javascript) change that to be other colors, say, blue? It doesn't seem to work for me anyhow.

+1  A: 

This can be done via CSS (no javascript is necessary) using the following rule:

a {
    -webkit-tap-highlight-color: blue;
}

Additional information can be found on the Apple Developer site

jdigital
omg, that works like a charm... thanks a lot!
tom
+1 for saving my day
Kalle