You can only use injected javascript code for that but I'm not sure why you would want to do that at all. It might be easier to disable focus for the whole webview widget at all. Or maybe I don't understand the problem I can't replicate it on my system...