Customwebview is there a way to remove the blue selection box that forms around things you press?

Is there a way to remove the blue box of selection around an object?

You should be able to do that by running a javascript on the page, something like:

<script>
var elements = document.getElementsByTagName("*");
myInterval = setInterval(myFunction, 50);

function myFunction() {
  for (let i = 0; i < elements.length; i++) {
  elements[i].style.border = "none";
}
}
</script>

it still appears, i tried this and it's on my website but nothing changed. So i was wondering if something could be done on the webviewer level.

What "object" (html element) are you selecting in this web page ? An image or two would help...

Sorry for the weird screenshot

But every single button or link that is clickable on the webviewer will show a blue box no matter what, on desktop the blue box doesnt appear but that is because it works that way there, on mobile the box will appear on every browser, removing it totally from this webviewer would be amazing and definitely make my app 100% better.

Run this js:

document.body.style.webkitTapHighlightColor='transparent';
1 Like

Which block should i use?

EvaluateJavaScript

it doesnt seem to work

Are you sure js is evaluated after page has been loaded?

What should i do?

Evaluate Js under PageLoaded event.

Yeah, you're goated

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.