Here are a few ways to remove it: Add the link directly onfocus="this.blur()". <a href="#" onfocus="this.blur()">Link</a> CSS Implementation Copy code The code is as follows:a{blr:expression(this.onFocus=this.close());} /* Only supports IE, too much use will result in low efficiency*/ a{blr:expression(this.onFocus=this.blur());} /* Only supports IE, too much use will result in low efficiency*/ a:focus { -moz-outline-style: none; } /* IE does not support */ htc implements IE support Copy code The code is as follows:<public:attach event="onfocus" onevent="hscfsy()"/> <script language="javascript"> function hscfsy(){ this.blur(); } </script> Call a {behavior:url(the path address of the htc file)} Implemented through JavaScript traversal Copy code The code is as follows:window.onload = function() { for(var ii=0; ii document.links$[$ii$]$.onfocus=function(){this.blur()} } 5. For WordPress, you can use the internal JQuery framework to remove Copy code The code is as follows:$("a").bind("focus",function(){ if(this.blur){ //If this.blur is supported this.blur(); } }); |
<<: Two ways to manage volumes in Docker
Table of contents 1. Introduction to import_table...
This article uses examples to illustrate the usag...
ReactRouter implementation ReactRouter is the cor...
In the previous article, we have implemented loca...
1: masterha_check_repl replica set error replicat...
Table of contents Preface VMware clone virtual ma...
Table of contents What is Docker deploy 1. Pull t...
Today's screen resolutions range from as smal...
This article example shares the specific code of ...
Preface As a basic data structure, arrays and obj...
In JavaScript, use the removeAttribute() method o...
Table of contents The origin of JSBridge The bidi...
Preface To help ensure that your web pages have a ...
Server matching logic When Nginx decides which se...
Table of contents 1. Component Introduction 2. Co...