Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

This.blur() doesn't work for mobile

I want to remove the focus after clicking a button[type=button]. To accomplish this I am using:

<button type="button" onfocus="this.blur();">Click here</button>

This works flawless on laptop and pc, but doesn't work for mobile devices. Is there anyone who knows how to remove the focus for mobile?

like image 702
Piet Avatar asked Aug 21 '15 21:08

Piet


1 Answers

Put this in your button element: style="outline:none;-moz-outline:none" hidefocus="true"

like image 157
Shobhit Avatar answered Oct 09 '22 23:10

Shobhit